jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thor Kummer" <thor.kum...@googlemail.com>
Subject Too many connections created when connecting from Weblogic's Virtual Content Repository.
Date Mon, 21 Aug 2006 12:47:45 GMT
Hello
We are trying to connect the Weblogics VCR to Jackrabbit using the JCA
contribution.

Weblogic's VCR is able to connect and we can browse the content for a
while. But then we start to see ResourceExceptions because there are
no more available connections in the connection pool. Apparently a new
connection is created for every access to the repository. Simply
clicking on an open node in the content tree to show its properties,
results in about 5 to 10 new connections. Increasing the pool capacity
postpones the exception but eventually the pool is depleted.

We fixed the bug in the JCA contribution where it doesn't expect null
for ConnectionRequestInfo in createManagedConnection by creating one
and substituting for the null.

We have experimented with various settings in ra.xml and
weblogic-ra.xml. Setting the initial capacity to 10 results in
matchManagedConnection to be called that many times. After that the
there are appearntly no "candidate connections" to call it with and it
doesn't get called.

The JCA contribution uses JCA 1.0, while version 1.5 is the latest
one. Weblogic supports both.

Below is our weblogic-ra.xml.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-connection-factory-dd SYSTEM "weblogic810-ra.dtd" >
<weblogic-connection-factory-dd>
<connection-factory-name>contentRepository</connection-factory-name>
<jndi-name>repository</jndi-name>

<pool-params>
<initial-capacity>10</initial-capacity>
<max-capacity>50</max-capacity>
<capacity-increment>1</capacity-increment>
<shrinking-enabled>true</shrinking-enabled>
(<connection-profiling-enabled>true</connection-profiling-enabled>
<shrink-frequency-seconds>5</shrink-frequency-seconds>

<inactive-connection-timeout-seconds>0</inactive-connection-timeout-seconds>
<highest-num-waiters>2147483647</highest-num-waiters>
<highest-num-unavailable>0</highest-num-unavailable>
<connection-creation-retry-frequency-seconds>1</connection-creation-retry-frequency-seconds>

<connection-reserve-timeout-seconds>10</connection-reserve-timeout-seconds>
<test-frequency-seconds>0</test-frequency-seconds>
<match-connections-supported>true</match-connections-supported>
</pool-params>
</weblogic-connection-factory-dd>

Below is our ra.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE connector PUBLIC
'-//Sun Microsystems, Inc.//DTD Connector 1.0//EN'
'http://java.sun.com/dtd/connector_1_0.dtd'>
<connector>
<display-name>Jackrabbit JCR Adapter</display-name>
<vendor-name>Apache.org</vendor-name>
<spec-version>1.0</spec-version>
<eis-type>JCR Adapter</eis-type>
<version>1.0</version>

<license>
<description>ASF</description>
<license-required>false</license-required>
</license>

<resourceadapter>
<managedconnectionfactory-class>org.apache.jackrabbit.jca.JCAManagedConnectionFactory</managedconnectionfactory-class>
<connectionfactory-interface>javax.jcr.Repository</connectionfactory-interface>
<connectionfactory-impl-class>org.apache.jackrabbit.jca.JCARepositoryHandle</connectionfactory-impl-class>
<connection-interface>javax.jcr.Session</connection-interface>
<connection-impl-class>org.apache.jackrabbit.jca.JCASessionHandle</connection-impl-class>
<transaction-support>XATransaction</transaction-support>
<config-property>
<config-property-name>HomeDir</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>C:/home/tku/Skat/poc/dapjcr/src21</config-property-value>
</config-property>
<config-property>
<config-property-name>ConfigFile</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>C:/home/tku/Skat/poc/dapjcr/src21/repository.xml</config-property-value>
</config-property>
<reauthentication-support>false</reauthentication-support>
</resourceadapter>
</connector>

Any pointers would be appreciated.

(Crossposted to BEA's dev2dev forum.)

Thor Kummer

Mime
View raw message