About Me

Tuesday, March 18, 2014

When you start the vanilla distribution of wso2 servers (WSO2 ESB , WSO2 Governance Registry , WSO2 Application Server ..etc) the default registry database is "Embedded modeH2" . In this mode of connection it allows only one connection to the database. Therefore if you need to mount ESB to external Governance Registry server, then it should have started with "Server mode H2"

Governance Registry Configurations:

1. Add the following H2DatabaseConfiguration to the carbon.xml to start the Governance Registry with "Server mode H2.

3. If you are ruining ESB in same machine, change the default port <Offset> in carbon.xml to prevent the port conflicts with Governance Registry server.

Eg:

<Offset>1</Offset>

4. Start the ESB sever.

5. Logged in to the ESB server and browse the registry to verify that mount has established.

Note: We don't recommend to use the H2 as the mount database for production setup. However this method is useful for the users who don't have rights to create the databases (MySQL , Oracle ..etc) in their corporate database system but still want to demo/test the registry space sharing/mounting.