Hi, until the ack for message #1 is not processed by the client, the client may retransmit message #1. So, I suspect the ack for message 1 is not coming back before its retransmission is triggered. To avoid unnecessary retransmission, you can make the retransmission interval value greater. That means, unless you configure the sender side to directly return an ack (ack interval = 0), you may encounter retransmission. To filter out those duplicates, you need to set the delivery assurance property to AtMostOnce or ExactlyOnce.
let me know if the above adjustment resolved your issue. regards, aki 2012/9/19 gauravd <[email protected]>: > Hello All, > > I am experiencing a peculiar behavior while trying out the WS-RM. I have > configured WS-RM both at client and server end through a JAX-WS frontend for > a two way synchronous invocation call. Client sends 5 messages with (message > # counter) and service responds back with a "recieved message #" . I have > also added the messageLossSimulator interceptor at the client side and > tweaked it so that it gobbles up message #3 and does not send it out. > > When I ran this, I expected messages #1,2,4,5 to be sent and only message #3 > would be retried. But whats happening is along with message #3, message #1 > is retried too. I'am not sure why message #1 is retried?? this leads to my > service method getting invoked six times (message #1 is sent twice) as > opposed to five times. > > I'am using the following assertion snippet at service end <code> > <wsrm-policy:RMAssertion> > <wsrm-policy:BaseRetransmissionInterval > Milliseconds="4000"/> > <wsrm-policy:AcknowledgementInterval > Milliseconds="3000"/> > </wsrm-policy:RMAssertion> > </code> > > This issue gets solved if I change AcknowledgementInterval with value 3000 > to 0. > Also when I use <code> <wsa:addressing allowDuplicates="false"/> </code> > with AcknowledgementInterval =3000 , I get duplicate ID Exception but my > service method is called 5 times which is right. > > Can you please help me this behavior? Iam using CXF 2.6.2 > > Thanks, > Gaurav > > > > > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/WS-RM-AcknowledgementInterval-leads-to-duplicates-tp5714148.html > Sent from the cxf-user mailing list archive at Nabble.com.
