Hi Steve, did you solve the problem. I have a session and transaction problem in jboss and ask myself if an answer to your question will solve it? The warning occurs very often and also some other transaction-exceptions, like "attempt to retrieve connection twice" or "inactive logical session-handle".
Thx, Gamba Steve-32 wrote: > > I was just looking at the > JackrabbitOnJBoss page of the Wiki: > > http://wiki.apache.org/jackrabbit/JackrabbitOnJBoss > > In the "Access the repository from a session bean" examples, is there > any reason why logout() is not called on the Session? I'm fairly new to > Jackrabbit but from scanning the mailing list and API, logout() should > be called whenever the session is no longer in use. > > The reason I ask is that I'm trying to get Jackrabbit running on JBoss > but I'm having trouble with transactions. If I follow the example and > leave logout() out it works, but each time the method is called it > seems that the old session is closed by JBoss before the new one is > created: > > 22:17:48,468 WARN [JBossManagedConnectionPool] Destroying connection > that could not be successfully matched: > org.jboss.resource.connectionmanager.txconnectionmanager$txconnectioneventliste...@dea215[state=normal > mc=org.apache.jackrabbit.jca.jcamanagedconnect...@bad094 handles=0 > lastUse=1181773068421 permit=false trackByTx=false > mcp=org.jboss.resource.connectionmanager.jbossmanagedconnectionpool$onep...@fc117d > context=org.jboss.resource.connectionmanager.internalmanagedconnectionp...@e041be > xaresource=org.apache.jackrabbit.jca.transactionboundxaresou...@d3cae0 > txSync=null] > 22:17:48,921 INFO [jcr/local] Created session > (org.apache.jackrabbit.core.xasessioni...@1cf630a) > > If I include logout(), it works fine the first time then has trouble > the next time it tries to get a new session. I get a "Resource already > associated with a > transaction" error message from from XASessionImpl. > > Any ideas as to what's happening here? > > Thanks, > > Steve > > > > > > -- View this message in context: http://www.nabble.com/Session-logout%28%29-tp11110285p25530208.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
