The most common usecase of CG is exposing a private service to public through a cooperate firewall. Let's see how to add a CG server and publish a service.
Follow the steps below to add a new CG server and publish it.
- Log in to the management console and select CSG Agent under Configure menu.
- New CSG server addition wizard opens. Since CSG server is actually running on a remote WSO2 ESB instance, the required information is information of WSO2 ESB.
The fields are described below. Note that all these fields are mandatory.
- CSG Server Name - A unique name for the server so that later you can select the server to publish the service
- CSG Host Name - The host name of the remote WSO2 ESB server, ex-localhost
- CSG Host Port - The port of the remote WSO2 ESB server, ex-9443
- User Name - The user name of the remote WSO2 ESB user, ex - admin
- Password - The password of the remote WSO2 ESB user, ex - admin
- Once this server is added, it gets listed under the CSG server listing page.
- You can also edit or delete severs that are already added using this wizard.
- Once a server is added you can publish deployed services to those servers. Go to Services > List menu under Main menu.
- The Deployed Services page opens. Click on the service you want to publish to open its dashboard.
Note that once you installed CSG Agent component, all the axis2 services will be marked as csg services. - In the service's dashboard, select the server that you want to publish this service to from the drop down menu, which lists added CSG serves.