[javagroups-users] Problems with concurrent processing in MessageDispatcher
Brought to you by:
belaban
From: Hanno W. <hwi...@vo...> - 2006-01-31 17:34:26
|
Hello, I have a problem with the MessageDispatcher in JGroups 2.2.8 and 2.2.9 = when sending synchronous messages. If there are two (or more) nodes = connected to the channel and the send synchronous messages using the = MessageDispatcher cast method that cross each other the messages get = stuck, e.g. there are nodes A and B and the communication happens in the = following way: Step Node A Node B 1 send request -----------> receive request | 2 receive request <-------- send request | 3 return result ----------> receive result | 4 receive result <--------- send result =20 Then the communication stops in step 3 when sending back the result and = B never retrieves this (or it is never really send at A). After the = timeout specified in the cast method both clients continue without = having any result. This also happens when I set concurrent processing to = true in the MessageDispatcher. I have attached a sample program to = reproduce the problem (after adjusting the ip address in TestLockupBase = first start TestLockupSender and then TestLockupReceiver and wait for = the first program to return before the 30 sec. timeout). Thanks for you help, Hanno Wiegard |