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: [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1181773068421 permit=false trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] txSync=null]
22:17:48,921 INFO  [jcr/local] Created session ([EMAIL PROTECTED])

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

Reply via email to