...
This is the easiest and the most recommended way to configure your server roles. For more information, please refer to section: Configuring Server Roles for Carbon Applications.
Using carbon.xml File
You can find the ServerRoles element in <PRODUCT_HOME>/repository/conf/carbon.xml file. For example,
...
Before setting the above, ensure that the current server has capability to deploy Axis2 services and data services. When you deploy a cApp artifact on this server, all artifacts which have the above two server roles will be deployed on the current instance. Others will be ignored.
Using a
...
System Property
You can use the system property ServerRoles to specify the server roles that can be acted by the current Carbon instance. When you start the server, pass the server roles as a comma separated list. For example,
...
Info |
---|
Once you use the management console to set server roles, you can't change that configuration using the other two methods. Server roles are stored in the Registry when they are configured through the management console. Values in the Registry are always given priority over others. |
Excerpt | ||
---|---|---|
| ||
Introduction to WSO2 Carbon applications. |