WSO2Con 2013 CFP Banner

How do I have multiple services in one service archive?

Archived Content
This article is provided for historical perspective only, and may not reflect current conditions. Please refer to relevant product page for more up-to-date product information and resources.
Discuss this article on Stack Overflow
By WSO2 Inc
  • 29 May, 2006
  • Level: 
  • Reads: 3939

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

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>