Re: Question on consumers

2011-05-03 Thread Don Santillan
Thanks a lot Martin. This is very helpful. With this, I'd like to verify if my understanding is correct through the following code snippet: ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(brokerURI); Connection connection = connectionFactory.createConnection();

Re: Question on consumers

2011-05-03 Thread Martin C.
Hi, the JMS threading model is based around the Session. Each Session is to be used by one thread. If you are using asynchronous mode (you register a MessageListener with the Session), every Session uses one thread or is to be used by one thread (http://download.oracle.com/javaee/1.4/api/javax/jms

Re: Question on consumers

2011-05-03 Thread Don Santillan
bump On Monday, 02 May, 2011 05:50 PM, Don Santillan wrote: Hello, I have a basic question about message consumers that I really need to confirm that my understanding is correct. Do message consumers run in different threads? Suppose I have 5 consumers assigned to a queue. Are these consume