WSO2Con 2013 CFP Banner

How do I have multiple services in one service archive?

By WSO2 Inc
Date: Mon, 29th May, 2006
Level:
Reads: 3369 Discuss this article on Stack Overflow

Q: How do I have multiple services in one service archive?

admin's picture

A: It's just a matter of writing a services.xml file to configure the service or services in an archive file.

The corresponding serices.xml SHOULD look like below:

   <serviceGroup>   <service name="myService1">
...........................
</service>

<service name="myService2">
...........................
</service>
<serviceGroup>
Note : The name attribute is a compulsory attribute which will become the name of the services. But if you want to have one service in the archive file then there are two options, either have one service inside serviceGroup tag or have only one service tag as shown below in your services.xml, in which case, name of the service will be the name of the archive file and you can not override that.
   <service>
...............
</service>
WSO2Con 2014