Could somebody please post what exactly was fixed here? I'm using 3.2.6 final and I'm 
getting the same error I've always been getting trying to integrate TopLink using JTS 
and JBoss 3.2.6.

The problem is this: In the afterCompletion() event, TopLink closes the DB connections 
(returns them to the pool). Every time this happens, I get a stack trace with the 
message:

org.jboss.resource.JBossResourceException: Error in delist!; - nested throwable: 
(java.lang.IllegalStateException: Already committed.)
    at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.rethrowAsResourceException(BaseConnectionManager2.java:113)
    at 
org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.delist(TxConnectionManager.java:489)
    at 
org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.connectionClosed(TxConnectionManager.java:523)
    at 
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.closeHandle(BaseWrapperManagedConnection.java:320)
    at 
org.jboss.resource.adapter.jdbc.WrappedConnection.close(WrappedConnection.java:123)
    at 
oracle.toplink.internal.databaseaccess.DatabaseAccessor.closeDatasourceConnection(DatabaseAccessor.java:326)


If I remove the TopLink call that closes the connection 
(UnitOfWork.afterTransaction(boolean, boolean), I get an error in the 
beforeCompletion() callback that I didn't close the connection.

I can't win here!

Now, TopLink allows you to write your own JTS hook, and this is what I'm doing. 
TopLink comes with JTS listeners for many platforms be default, but JBoss is not one. 
I would like to create one that will work, but I have no idea how to make JBoss happy.

Does anyone have any ideas how I can integrate TopLink JTS support into JBoss? If I 
can't get an answer here, where can I go?

Nate

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852966#3852966

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852966


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to