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: JOTM + Hibernate 3.3.0.GA (JTA)
PostPosted: Tue Aug 19, 2008 12:33 pm 
Newbie

Joined: Tue Oct 03, 2006 2:07 am
Posts: 18
I am a little confused.

What is the right configuration spring, JOTM and hibernate 3.3.0 ? (With hibernate 3.2.5 all works fine)

Should I
1) Set JOTMTransactionManagerLookup into hibernate properties ?
hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JOTMTransactionManagerLookup
Seem to not working since JTATransactionFactory.getUserTransaction() dont count with this class.

2) Override JTATransactionFactory myself and set hibernate properties to
hibernate.transaction.factory_class=org.hibernate.transaction.JOTMJTATransactionFactory

3) Leave all to spring. Spring 2.5.5 claims that support hibernate 3.3.0. Spring knowns that I am using JOTM and Hibernate. Maybe spring do this for me.

Which one is the right one ?
Thanks for help.


Top
 Profile  
 
 Post subject: When using 2) JOTM dont unlock connection
PostPosted: Mon Aug 25, 2008 6:35 am 
Newbie

Joined: Tue Oct 03, 2006 2:07 am
Posts: 18
and endup with exception

StandardPoolDataSource:getConnection no connection available java.lang.Exception: GenericPool:checkOut ERROR impossible to obtain a new object from the pool

and info about the pool

GenericPool:
num of element =<80>
minSize =<0>
maxSize =<80>
lifeTime =<600000>
ngeneration =<1>
getLockedObjectCount() =<80>
getUnlockedObjectCount() =<0>

getDeadLockMaxWait() =<300000>
getDeadLockRetryWait() =<10000>


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.