-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Can we use iterate within JTA trasactions?
PostPosted: Sun Oct 29, 2006 4:40 pm 
Newbie

Joined: Wed May 24, 2006 10:31 am
Posts: 6
iterate() method requires the corresponding jdbc connection to be not in autoCommit mode. When JDBCTransaction is used, this transaction at begin switches off autoCommit. But the JTATransaction does do so. Then iterate() fetches IDs. And for each ID it fetches an entity. This entity fetch closes connection. Then when I am trying to fetch the next ID the connection is already closed and a corresponding ResultSet is closed too.
Stack trace:
Code:
org.firebirdsql.jdbc.FBSQLException: The result set is closed
   at org.firebirdsql.jdbc.FBResultSet.checkCursorMove(FBResultSet.java:217)
   at org.firebirdsql.jdbc.FBResultSet.next(FBResultSet.java:249)
   at org.hibernate.impl.IteratorImpl.postNext(IteratorImpl.java:83)
   at org.hibernate.impl.IteratorImpl.next(IteratorImpl.java:120)

Can we use iterate() in context of JTATransaction?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.