-->
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.  [ 2 posts ] 
Author Message
 Post subject: JBoss AS - connecitons are not closed
PostPosted: Wed Apr 11, 2007 11:46 am 
Expert
Expert

Joined: Wed Apr 11, 2007 11:39 am
Posts: 735
Location: Montreal, QC
Hello,

I am using hibernate 3.1.3 with Spring 1.2.9 in JBoss 4.2.0 CR1, and JBoss keeps complaining it is closing connections that should have been closed by my application. Having googled the problem, I found I needed to force hibernate connection release mode to be auto so that it decides when to close the connections. However, I am still getting the following error:

10:43:11,325 INFO [CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter
.jdbc.WrappedConnection@1521d14

Well, does any one have any idea why I am getting this?


Thanks
Farzad-


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 2:31 pm 
Expert
Expert

Joined: Wed Apr 11, 2007 11:39 am
Posts: 735
Location: Montreal, QC
Finally I could solve the problem by letting hibernate know about JBoss transaction manager. It took me to set the following two hibernate properties:

Code:
hibernate.transaction.factory_class=org.hibernate.transaction.JTATransactionFactory        hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup


spring documentation explains the reason. Look at section 12.2.10 at

http://static.springframework.org/spring/docs/1.2.x/reference/orm.html#orm-hibernate


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

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.