I'm trying to setup a server session pool for a JMS receiver. I've attached the example code. The problem is in getting the server connection factory. Because 'StdJMSPool' is not in the global JNDI namespace, I'm getting 'StdJMSPool not bound' error.
StdServerSessionPoolFactory serverSessionPoolFactory =
(StdServerSessionPoolFactory)jndiContext.lookup("java:/StdJMSPool");
My ultimate goal is to create a single listener
listening to multiple queues. The order of messages in
the queues are very important, it must be processed in
order. I want to create a single thread to process the
message in a queue. So if I have 5 queues, then I
would create 5 threads, one thread per queue. The
messages in the 5 queues would be processed
concurrently. Can I accomplish this using
createConnectionConsumer?
- Khoa
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
jmsQueueMultipleReceiver.java
Description: jmsQueueMultipleReceiver.java
