I'm mounting shared registry based in article[1].

But I received this error:
Caused by: java.sql.SQLException: Total number of available
connections are less than the total number of closed connections

I tried another configurations, but I don't have success.

My configs:

<!-- greg 4.1.0 -->
   <currentDBConfig>wso2registry</currentDBConfig>
   <readOnly>false</readOnly>
   <enableCache>true</enableCache>
   <registryRoot>/</registryRoot>

   <dbConfig name="wso2registry">
       <url>jdbc:jtds:sqlserver://dbserver/wso2carbon3_2</url>
       <userName>wso2</userName>
       <password>wso2</password>
       <driverName>net.sourceforge.jtds.jdbc.Driver</driverName>
       <maxActive>50</maxActive>
       <maxWait>60000</maxWait>
       <minIdle>5</minIdle>
   </dbConfig>

<!-- esb 4.0.2 -->
   <currentDBConfig>wso2registry</currentDBConfig>
   <readOnly>false</readOnly>
   <enableCache>true</enableCache>
   <registryRoot>/</registryRoot>

   <dbConfig name="wso2registry">
       <url>jdbc:jtds:sqlserver://dbserver/wso2carbon3_2</url>
       <userName>wso2</userName>
       <password>wso2</password>
       <driverName>net.sourceforge.jtds.jdbc.Driver</driverName>
       <maxActive>50</maxActive>
       <maxWait>60000</maxWait>
       <minIdle>5</minIdle>
   </dbConfig>

   <dbConfig name="sharedRegistry">
       <url>jdbc:jtds:sqlserver://dbserver/wso2carbon3_2</url>
       <userName>wso2</userName>
       <password>wso2</password>
       <driverName>net.sourceforge.jtds.jdbc.Driver</driverName>
       <maxActive>50</maxActive>
       <maxWait>60000</maxWait>
       <minIdle>5</minIdle>
   </dbConfig>

   <remoteInstance url="https://localhost:9447/registry";>
       <id>sharedRegistryInstance</id>
             <dbConfig>sharedRegistry</dbConfig>
             <readOnly>false</readOnly>
             <registryRoot>/</registryRoot>
   </remoteInstance>

   <mount path="/_system/governance" overwrite="true">
       <instanceId>sharedRegistryInstance</instanceId>
       <targetPath>/_system/governance</targetPath>
   </mount>

   <mount path="/_system/config" overwrite="true">
       <instanceId>sharedRegistryInstance</instanceId>
       <targetPath>/_system/esbConfig</targetPath>
   </mount>

[1] 
http://wso2.org/library/tutorials/2010/04/sharing-registry-space-across-multiple-product-instances

[]s
Leonardo
www.wso2brasil.com.br
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to