[jboss-user] [Datasource Configuration] - Problem with configuring jackrabbit data source.

Petr Šrůtka do-not-reply at jboss.com
Mon May 20 04:45:58 EDT 2013


Petr Šrůtka [https://community.jboss.org/people/menzi] created the discussion

"Problem with configuring jackrabbit data source."

To view the discussion, visit: https://community.jboss.org/message/818424#818424

--------------------------------------------------------------
've encountered a problem with jackrabbit pool in jboss 5 and jackrabbit 2.0. 


I've a jcr datasource configured like this 


 <tx-connection-factory>
    <jndi-name>jcr/local</jndi-name>
    <xa-transaction />
    <track-connection-by-tx>true</track-connection-by-tx>
    <rar-name>jackrabbit-jca.rar</rar-name>
    <connection-definition>javax.jcr.Repository</connection-definition>
    <config-property name="homeDir" type="java.lang.String">${jackrabbit.homedir}</config-property>
    <config-property name="configFile" type="java.lang.String">classpath:repository.xml</config-property>
    <config-property name="bindSessionToTransaction" type="java.lang.Boolean">true</config-property>
    <no-tx-separate-pools />
    <max-pool-size>30</max-pool-size>
</tx-connection-factory>


like this, application works fine, but i'm getting this error really often (it's thrown every time i'm logging into dms session with this code) 


         Repository repo = (Repository) ctx.lookup(repository.getJndiName()); 
        Credentials cred = new SimpleCredentials(userId, new char[] { 'p', 'w', 'd' }); 
        Session s = repo.login(cred); 


Destroying connection that could not be successfully matched: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 8cd0558[state=NORMAL mc=org.apache.jackrabbit.jca.JCAManagedConnection at 6eec369a handles=0 lastUse=1366642930773 permit=false trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool at 8a800c9 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 6f7fc42f xaResource=org.apache.jackrabbit.jca.TransactionBoundXAResource at 4c19d8eb txSync=null] 




when i add to datasource configuration, error mentioned earlier dissapears, but each connection to jcr creates it's own subpool (which is kinda crazy, becouse after few hours of application running it creates like 700 subpools). I Tryed searching for possible problems with tag and found out that it uses ConnectionRequestInfo to authenticate connections but so far had no success with configuring that. 


Any idea what could i try next to get rid of both problems at once?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/818424#818424]

Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130520/7d5cc45f/attachment.html 


More information about the jboss-user mailing list