ws-rm ImmediateAcknowledgement doesn't work for ws-rm client side -----------------------------------------------------------------
Key: CXF-3097 URL: https://issues.apache.org/jira/browse/CXF-3097 Project: CXF Issue Type: Bug Affects Versions: 2.2.11, 2.3.0 Reporter: Freeman Fang Assignee: Freeman Fang Fix For: 2.2.12, 2.3.1, 2.4 For ws-rm configuration, if acknowledgementInterval is 0(the default value), both client and server side will use ImmediateAcknowledgement, which means try best to not create out-of-bound SequenceAcknowledgement, this can gain higher performance. For server side, the behavior is put SequenceAcknowledgement header to the response message, for client side, the behavior is put SequenceAcknowledgement header to next invocation request message in the rm sequence. This can cause problem for client side of the last response message which has SequenceAcknowledgement header, as there's no SequenceAcknowledgement for the last response and so server side will always resend the message. As in real scenario we generally don't know how many invocation we want to trigger on a certain endpoint, so we don't know which message is last response during runtime. We can see this problem if we edit SequenceTest.testTwowayNonAnonymous(), add Thread.sleep(10000); before verifyTwowayNonAnonymous(); to let the server side resend happen. We should be able to provide a configurable timeout for AcksPolicy, so that the we get chance to send a out-of-bound SequenceAcknowledgement for the last response in this case. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.