[prev in list] [next in list] [prev in thread] [next in thread] 

List:       activemq-users
Subject:    onMessage Threading Question
From:       kureckam <mkurecka () fractech ! net>
Date:       2011-08-29 20:16:46
Message-ID: 1314649006543-3777282.post () n4 ! nabble ! com
[Download RAW message or body]

I have several listeners each of which I want to listen on there own thread,
but it doesn't seem to be creating separate threads.  I have one connection
which creates a session for each listener. The sessions are each created in
there own thread and within that thread for each session a consumer is
created and setMessageListener is called.  But when the message is received
in the onMessage method, the thread id is similar for different listeners. I
want to ensure that each listener is listening on its own thread, but can't
seem to get it to work.  I've tried creating individual sessions as listed
above or using individual connections with the same result. Any insight
would be appreciated.

--
View this message in context: \
http://activemq.2283324.n4.nabble.com/onMessage-Threading-Question-tp3777282p3777282.html
 Sent from the ActiveMQ - User mailing list archive at Nabble.com.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic