wso2 / msf4j

WSO2 Microservices Framework for Java (MSF4J)
http://wso2.com/products/microservices-framework-for-java/
Apache License 2.0
400 stars 349 forks source link

Documentation of pom entry microservice.resourceClasses #541

Open MHaverbier opened 6 years ago

MHaverbier commented 6 years ago

Description: I want to split my microservices in two files in one project. So that I have the microservices for a project in one project but separated in more than one files according to the functionality of the services. At the moment I am using a pom file with this lines:

<project>
[...]
<properties>
<microservice.resourceClasses>com.companyname.projectname.microservices-part1</microservice.resourceClasses>
</properties>
</project>

So atm all my microservices are in "microservices-part1.java" but I want to add a second class "microservices-part2.java".

Is this even posssible to do and if yes, how? I did not fine any documentation about the pom property microservice-resourceClasses and how to add mulitple classes.

Suggested Labels:

Suggested Assignees:

Affected Product Version: 2.5.2

OS, DB, other environment details and versions:
As this is mostly a request for documentation I think OS, DB and other information is not needed.

Steps to reproduce: Just create two microservices in two classes (with one file each) and try to get both running.

Related Issues:

thusithathilina commented 6 years ago

You can put comma separated values here if all those classes are available on the same jar file. e.g. <microservice.resourceClasses>com.companyname.projectname.microservices-part1,com.companyname.projectname.microservices-part2</microservice.resourceClasses>

MHaverbier commented 6 years ago

Thanks, seems to work. I don't know why, because I got something like this before.

But where did you get the info, that this should work?

thusithathilina commented 6 years ago

@MSchwarzer-Haverbier No worries. I was one of the core developers in the MSF4J project ;-)

MHaverbier commented 6 years ago

Is there documentation on this topic somewhere?