Limiting JMS Destination Instances

Posted by jumponadoughnut on Stack Overflow See other posts from Stack Overflow or by jumponadoughnut
Published on 2010-03-24T12:11:02Z Indexed on 2010/03/24 12:13 UTC
Read the original article Hit count: 220

Is it possible to limit the number of JMS receiver instances to a single instance? I.e. only process a single message from a queue at any one time?

The reason I ask is because I have a fairly intensive render type process to run for each message (potentially many thousands). I'd like to limit the execution of this code to a single instance at a time.

My application server is JBoss AS 6.0

Any help much appreciated

© Stack Overflow or respective owner

Related posts about java

Related posts about javaee