Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In C-App development time, you can specify a server role ServerRole for each and every artifact in the C-App. For example, say you are developing an Axis2 service and planning to deploy all your services in a single Application Server instance in the production setup. You can set the server role ServerRole as appserver1.

The following methods can be used to set the ServerRole property:

Table of Contents
maxLevel4
minLevel4

Using the management console to set the ServerRole property

This is the easiest and the most recommended way to configure your server roles.   Follow the instructions below to add a new server role:

  1. Log in to the management console of your product and  click Server Roles menu under the Configure menu. 

  2. Click Add New Server Role   ,  enter enter the Role Name and click Add. You can add any textual name as a server role without special characters except underscore.
     
  3. The newly added server role is displayed in the server roles list.
     You can delete the server role using the Delete icon associated with it.

    Info

    You cannot undo a deletion once performed. Users can even delete a default server role. Once deleted, the server role manager will not pick up the deleted server role from the carbon.xml file, next time the server starts.

...

Code Block
<ServerRoles>
     <Role>DataServicesServer</Role>
</ServerRoles>

You can set multiple role elements here to specify the roles acted by the current also specify multiple roles for the server. For example, if you want this server to act as appserver1 and dataservices1 servers, configuration is as follows:

Code Block
<ServerRoles>
     <Role>appserver1</Role>
     <Role>dataservices1</Role>
</ServerRoles>

...