jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve <st...@shopformat.com>
Subject Session logout()
Date Wed, 13 Jun 2007 22:27:24 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#333333">
<font size="-1"><font face="Tahoma">I was just looking at the
JackrabbitOnJBoss page of the Wiki:<br>
<br>
<a class="moz-txt-link-freetext" href="http://wiki.apache.org/jackrabbit/JackrabbitOnJBoss">http://wiki.apache.org/jackrabbit/JackrabbitOnJBoss</a><br>
<br>
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.<br>
<br>
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:<br>
<br>
22:17:48,468 WARN&nbsp; [JBossManagedConnectionPool] Destroying connection
that could not be successfully matched:
org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@dea215[state=NORMAL
mc=org.apache.jackrabbit.jca.JCAManagedConnection@bad094 handles=0
lastUse=1181773068421 permit=false trackByTx=false
mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@fc117d
context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@e041be
xaResource=org.apache.jackrabbit.jca.TransactionBoundXAResource@d3cae0
txSync=null]<br>
22:17:48,921 INFO&nbsp; [jcr/local] Created session
(org.apache.jackrabbit.core.XASessionImpl@1cf630a)<br>
<br>
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 </font></font><font
 size="-1"><font face="Tahoma">"Resource already associated with a
transaction" error message from </font></font><font size="-1"><font
 face="Tahoma">from XASessionImpl.</font></font><br>
<font size="-1"><font face="Tahoma"><br>
Any ideas as to what's happening here?<br>
<br>
Thanks,<br>
<br>
Steve<br>
</font></font>
</body>
</html>


Mime
View raw message