OK, I've done some debugging, and inspecting the trace generated by the client 
(the receiver/consumer) gone through the code.
Now, the code in the class org.jboss.mq.il.uil2.UILClientILService, in the 
method handleMsg we saw this:


  |       switch( msgType )
  |       {
  |          case m_receiveRequest:
  |             ReceiveRequestMsg rmsg = (ReceiveRequestMsg) msg;
  |             ReceiveRequest[] messages = rmsg.getMessages();
  |             connection.asynchDeliver(messages);
  |                        socketMgr.sendReply(msg);
  |             break;
  |           .......
  |        }
  | 

The line in red, is sending the full message back when a receiveRequest message 
is received. That's the part that seems to be resending the message back.
So, I've commented this line and recompiled the jboss sources. I took the 
jbossmq.jar for the clients, rerun the test, and everithing worked just fine, 
and the duplicate messages disappeared.
I wanted to  know if I can just do this, or it will break something.
What's the purpose of returnin the message, even if the message is one way?
Thanks,
   Marcelo

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870095#3870095

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3870095


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to