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.  [ 6 posts ] 
Author Message
 Post subject: TransactionManagerLookup problem
PostPosted: Wed Apr 13, 2005 4:45 am 
Beginner
Beginner

Joined: Wed Nov 19, 2003 3:08 pm
Posts: 20
Hi!

Is there a way to configure that hibernate won't use this TransactionManagerLookup?

At some reason in out product dual processor server, where we use jboss 3.2.x version, creating new instance takes so much time, that first web page load's approximately 40 seconds. I have configured it to use this JBoss's manager but it doesnt help..
Of course after that application work's fine.

Thanks. Artsi


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 13, 2005 7:37 am 
Regular
Regular

Joined: Thu Nov 13, 2003 2:55 am
Posts: 71
Location: Sweden
You can choose to provide either hibernate.transaction.manager_lookup_class (class) or jta.UserTransaction (JNDI name) or leave it as default ("java:comp/UserTransaction").

But what makes you think this is what causes the delay?
(B.t.w. are you using JTA at all?)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 13, 2005 8:04 am 
Beginner
Beginner

Joined: Wed Nov 19, 2003 3:08 pm
Posts: 20
Yes i know those properties. But i want turn it off.

I can see from logs that thread stop's in that section.

Of course REAL problem could be in JBOSS which share TransactionFactory..


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 13, 2005 8:21 am 
Regular
Regular

Joined: Thu Nov 13, 2003 2:55 am
Posts: 71
Location: Sweden
How did you intend using JTA without looking up the UserTransaction/TransactionManager?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 13, 2005 11:40 am 
Beginner
Beginner

Joined: Wed Nov 19, 2003 3:08 pm
Posts: 20
There is no other connection to database, and i dont have to use JTA.. now how can i get rid from this TransactionManagerLookup.. anyone?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 13, 2005 12:10 pm 
Regular
Regular

Joined: Thu Nov 13, 2003 2:55 am
Posts: 71
Location: Sweden
If you are using JDBC transactions, there should be no JTA manager lookup.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.