In this JBoss version, oswego-concurrent thread pools are used to process the 
messages. Every message picked up is handed over to the thread pool for 
processing.

If the thread pool is set to 1 (using maximumSize), the MDB acts as a singleton.

If some reasons a thread from the thread pools exits (due to an exception etc), 
in some cases no thread is re-created by the thread pool. So you have some sort 
of thread leakage. Restarting the MDB probably re-creates the thread pool 
completely.

We also use singleton MDBs and had a similiar looking case a while ago. From 
the java thread dump we could see that the blocking MDB was waiting on its 
thread pool for a thread to process the message. But the pool was empty, so the 
MDB waited forever.

Dough Lea, the creator of the oswego-concurrent package, said the reason was an 
unsupported way how JBoss used the thread pool settings, but Adrian regarded it 
as a bug in the lib.

Anyway, Dough added a change to support the JBoss usage and now it works.

Just have a look at the thread dump and upgrade the version of the concurrent 
library you are using. The latest version you can find here:

http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html

Replace the version used by JBoss and try again.

Upgrading to the newest JBoss in the 3.2 branch is a good idea anyway, besides 
of pulling in the newest concurrent lib it would also fix a couple of other 
issues with JMS.

HTH. Jörg


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922869#3922869

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922869


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to