-->
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: query.list() blocking? JBoss vs Tomcat?
PostPosted: Wed Apr 28, 2010 9:03 am 
Newbie

Joined: Wed Apr 28, 2010 8:48 am
Posts: 2
Has anyone found the list() method of Query to block?

I run my application on the server (JBoss) and the following query will block after it has been called a few times:

Code:
@NamedQuery(name = "User.findByUsername", query = "FROM User u where _username = :userName"),
....
query.list()


I can't see any database locks and the CPU doesn't max out. When I turn on SQL logging, I don't even see the generated SQL for this query when it blocks.

However, when I run my application on my local Tomcat instance (connecting to exactly the same database), everything is fine.

Any ideas?


Top
 Profile  
 
 Post subject: Re: query.list() blocking? JBoss vs Tomcat?
PostPosted: Wed Apr 28, 2010 9:39 am 
Newbie

Joined: Wed Apr 28, 2010 8:48 am
Posts: 2
It might be nothing, but when the query.list() eventually returns I see the following entry in the server log:

Code:
2010-04-28 09:24:11,783 INFO  [STDOUT] query.list() finally returned!!!!!!
2010-04-28 09:26:00,263 INFO  [com.adobe.idp.um.businesslogic.dao.hibernate.UMLocalSessionFactoryBean] Using dialect [org.hibernate.dialect.MySQL5Dialect] - Detected DB Product name - MySQL and version 5


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.