Discussion:
[jboss-user] [Datasource Configuration] - Problem with configuring jackrabbit data source.
Petr Šrůtka
2013-05-20 08:45:58 UTC
Permalink
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$***@8cd0558[state=NORMAL mc=***@6eec369a handles=0 lastUse=1366642930773 permit=false trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$***@8a800c9 context=***@6f7fc42f xaResource=***@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]
Loading...