Thread:
 Container managed JTA Session Service 
 ivelin   20 Dec 2003, 14:20 
 Re: Container managed JTA Session Service 
 Horst Dehmer   16 Feb 2004, 00:06 
 Re: Container managed JTA Session Service 
 alesj   19 Oct 2004, 10:58 
 Re: Container managed JTA Session Service 
 juice   28 Oct 2004, 19:32 
 Re: Container managed JTA Session Service 
 hengels   17 Feb 2004, 10:02 
 Synchronization problem 
 jdragon   17 Feb 2004, 23:29 
 Re: Synchronization problem 
 TransactionException   24 Apr 2007, 04:41 
 Re: Container managed JTA Session Service 
 hengels   18 Mar 2004, 13:29 
 Re: Container managed JTA Session Service 
 hengels   18 Mar 2004, 14:07 
 Re: Container managed JTA Session Service 
 clcantrell   03 Aug 2006, 08:51 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: hengels (18 Mar 2004, 14:07) Replies: 0, Views: 38892
Subject: Re: Container managed JTA Session Service
>As you can see, some of the hibernate calls are working, but then
>hibernate claims: "Session is currently disconnected". The transaction
>is active. the session was obtained from the service just before the
>invocation of load.
 
Hm, adding these two lines to the JTASessionFactory just before 
returning the session solves the problem: 
 
                if (!hsession.isConnected()) 
                    hsession.reconnect(); 
 
Holger
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]