[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Failover possible dead lock
clebert.suconic@jboss.com
do-not-reply at jboss.com
Mon Jan 29 18:54:04 EST 2007
I found a possible dead lock on Failover / valves.
This is the scenario:
One Connection
Two Threads
.. Thread1 is called Consumer
.. Thread2 is called Producer
(Each thread will have its own session, of course)
The Consumer thread will do:
|
| while (true)
| {
| Message message = consumer.receive();
System.out.println("Message = " + message);
}
While the Producer will do
| while(true)
| {
| producer.send(session.createTextMessage("Message from producer " + id + " counter=" + (counter)));
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008072#4008072
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008072
More information about the jboss-dev-forums
mailing list