Versions Compared

Key

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

A ServerRoles is a parameter that is mentioned in the carbon.xml file of all WSO2 Carbon-based products, in the <PRODUCT_HOME>/repository/conf directory. Each product has a different default ServerRoles property as follows:

...

This property value is used for the deployment of WSO2 Carbon Applications.

What is a Carbon application

Info

Carbon Applications will be renamed to Composite Applications in an upcoming release, because we will be supporting both Carbon-based and non Carbon-based applications.

...

When a user deploys a C-App in a Carbon based-product, all its resources cannot be deployed in that particular product instance. To specify which can and which cannot be deployed, the ServerRoles property is used. When a C-App is being deployed, it reads the ServerRoles property from the carbon.xml and deploys only the resources that match the ServerRoles values in there. The following is an example list of C-App resources that map to default server roles.

  • ApplicationServer - foo.aar, jax-wx.war
  • EnterpriseServiceBus - proxy.xml
  • BusinessProcessServer - my_bpel.zip
  • JaggeryServer - jaggery_app.jag

Server Roles Manager

Server roles manager is a component to manage the server roles property for WSO2 Carbon based products. Due to the functionality of the server roles manager, users do not have to manually modify the carbon.xml to include the server-roles related to the product feature that they have added to a Carbon product instance. The server roles manager stores both carbon.xml file's default product roles as well as the user/tenant specific server roles in the configuration registry. So, when a C-App is deployed in Carbon, the C-App deployer checks for auto-mentioned server roles from the registry instead of the carbon.xml file.

...