Hi Leonardo,

The local and the shared registry can't both reside on the same DB
(jdbc:jtds:sqlserver://dbserver/wso2carbon3_2). That's why you got this
issue.

Thanks,
Senaka.

On Sat, Nov 19, 2011 at 8:06 PM, Leonardo Saraiva <
leona...@wso2brasil.com.br> wrote:

> 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
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>



-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to