Hi, we're trying to implement reliable messaging using CXF. Here's the
xml:
<cxf:bus>
<cxf:features>
<cxf:logging/>
<wsa:addressing/>
<wsrm-mgr:reliableMessaging>
<wsrm-mgr:deliveryAssurance>
<wsrm-mgr:AtLeastOnce/>
</wsrm-mgr:deliveryAssurance>
</wsrm-mgr:reliableMessaging>
</cxf:features>
</cxf:bus>
For some reason, the client and the server keep re-sending messages over
and over again. If we turn off reliable messaging, it works fine.
CLIENT
----------------------------
ID: 8
Address: /ws/acks
Encoding: ISO-8859-1
Content-Type: text/xml
Headers: {content-type=[text/xml], connection=[keep-alive],
Host=[localhost:8082], Content-Length=[1331], User-Agent=[Ap
ache CXF 2.2.3], Content-Type=[text/xml], Accept=[*/*],
Pragma=[no-cache], Cache-Control=[no-cache]}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Act
ion xmlns="http://schema
s.xmlsoap.org/ws/2004/08/addressing">http://services.core.cxf.research.a
votus.com/HelloWorld/sayHiResponse</Action><Mess
ageID
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">urn:uuid:ff4fd7
66-53f8-4ef9-b2b0-5cbd18f0d299</MessageID>
<To
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://localhos
t:8082/ws/acks</To><RelatesTo xmlns="http://
schemas.xmlsoap.org/ws/2004/08/addressing">urn:uuid:95af341e-8419-458d-a
6bf-2cef53119f83</RelatesTo><wsrm:Sequence xmlns
:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"><wsrm:Iden
tifier>urn:uuid:a05a9929-ca14-431b-84d4-43e67374d3f3</wsrm:Identifier><w
srm:MessageNumber>1</wsrm:MessageNumber></wsrm:S
equence><wsrm:SequenceAcknowledgement
xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsrm="http://sc
hemas.xmlsoap.org/ws/2005/02/rm"><wsrm:Identifier>urn:uuid:ab326a78-9827
-4e92-b76a-d721917a32ad</wsrm:Identifier><wsrm:A
cknowledgementRange Lower="1" Upper="1"
/></wsrm:SequenceAcknowledgement></soap:Header><soap:Body><ns2:sayHiResp
onse xml
ns:ns2="http://services.core.cxf.research.avotus.com/"><return>Server
got whatever!</return></ns2:sayHiResponse></soap:B
ody></soap:Envelope>
--------------------------------------
Aug 14, 2009 11:03:15 AM org.apache.cxf.ws.addressing.soap.MAPCodec
restoreExchange
WARNING: Failed to correlate message, aborting dispatch.
SERVER
--------------------------------------
Aug 14, 2009 11:03:05 AM org.apache.cxf.interceptor.LoggingInInterceptor
logging
INFO: Inbound Message
----------------------------
ID: 2
Address: /sample-server/services/helloworld
Encoding: UTF-8
Content-Type: text/xml; charset=UTF-8
Headers: {content-type=[text/xml; charset=UTF-8],
connection=[Keep-Alive], Host=[localhost:8080], Content-Length=[1012],
SOAPAction=[""], User-Agent=[Apache CXF 2.2.3], Content-Type=[text/xml;
charset=UTF-8], Accept=[*/*], Pragma=[no-cache]
, Cache-Control=[no-cache]}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Act
ion xmlns="http://schema
s.xmlsoap.org/ws/2004/08/addressing">http://services.core.cxf.research.a
votus.com/HelloWorld/sayHi</Action><MessageID xm
lns="http://schemas.xmlsoap.org/ws/2004/08/addressing">urn:uuid:091bf13d
-3f11-4ca2-9587-587e6cb51ea2</MessageID><To xmln
s="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://localhost:80
80/sample-server/services/helloworld</To><ReplyT
o
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><Address>http:/
/localhost:8082/ws/acks</Address></ReplyTo><ws
rm:Sequence xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/
02/rm"><wsrm:Identifier>urn:uuid:4a57b124-c1b3-4034-8917-944c591585f0</w
srm:Identifier><wsrm:MessageNumber>1</wsrm:Messa
geNumber></wsrm:Sequence></soap:Header><soap:Body><ns2:sayHi
xmlns:ns2="http://services.core.cxf.research.avotus.com/"><
arg0>whatever!</arg0></ns2:sayHi></soap:Body></soap:Envelope>
--------------------------------------
Aug 14, 2009 11:03:05 AM
org.apache.cxf.interceptor.LoggingOutInterceptor$LoggingCallback onClose
INFO: Outbound Message
---------------------------
ID: 2
Encoding: UTF-8
Content-Type: text/xml
Headers: {}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Mes
sageID xmlns="http://sch
emas.xmlsoap.org/ws/2004/08/addressing">urn:uuid:885e38b4-db00-4646-9d1c
-b0c17e275c54</MessageID><To xmlns="http://schem
as.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2004
/08/addressing/role/anonymous</To><ReplyTo xmlns
="http://schemas.xmlsoap.org/ws/2004/08/addressing"><Address>http://sche
mas.xmlsoap.org/ws/2004/08/addressing/role/none<
/Address></ReplyTo></soap:Header><soap:Body /></soap:Envelope>
--------------------------------------
sayHi called
Aug 14, 2009 11:03:05 AM
org.apache.cxf.interceptor.LoggingOutInterceptor$LoggingCallback onClose
INFO: Outbound Message
---------------------------
ID: 2
Address: http://localhost:8082/ws/acks
Encoding: UTF-8
Content-Type: text/xml
Headers: {Accept=[*/*]}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Act
ion xmlns="http://schema
s.xmlsoap.org/ws/2004/08/addressing">http://services.core.cxf.research.a
votus.com/HelloWorld/sayHiResponse</Action><Mess
ageID
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">urn:uuid:35f7ff
f4-b494-4331-a08f-f3366b383490</MessageID>
<To
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://localhos
t:8082/ws/acks</To><RelatesTo xmlns="http://
schemas.xmlsoap.org/ws/2004/08/addressing">urn:uuid:091bf13d-3f11-4ca2-9
587-587e6cb51ea2</RelatesTo><wsrm:Sequence xmlns
:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"><wsrm:Iden
tifier>urn:uuid:ba00cbf0-5622-4866-b4a4-1adf2853911c</wsrm:Identifier><w
srm:MessageNumber>1</wsrm:MessageNumber></wsrm:S
equence><wsrm:SequenceAcknowledgement
xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsrm="http://sc
hemas.xmlsoap.org/ws/2005/02/rm"><wsrm:Identifier>urn:uuid:4a57b124-c1b3
-4034-8917-944c591585f0</wsrm:Identifier><wsrm:A
cknowledgementRange Lower="1" Upper="1"
/></wsrm:SequenceAcknowledgement></soap:Header><soap:Body><ns2:sayHiResp
onse xml
ns:ns2="http://services.core.cxf.research.avotus.com/"><return>Server
got whatever!</return></ns2:sayHiResponse></soap:B
ody></soap:Envelope>
--------------------------------------
Aug 14, 2009 11:03:08 AM
org.apache.cxf.ws.rm.soap.RetransmissionQueueImpl$3 resend
INFO: WS-RM retransmission of message 1.
Aug 14, 2009 11:03:08 AM org.apache.cxf.endpoint.AbstractConduitSelector
getSelectedConduit
WARNING: MessageObserver not found
Aug 14, 2009 11:03:14 AM
org.apache.cxf.ws.rm.soap.RetransmissionQueueImpl$3 resend
INFO: WS-RM retransmission of message 1.
Aug 14, 2009 11:03:14 AM org.apache.cxf.endpoint.AbstractConduitSelector
getSelectedConduit
WARNING: MessageObserver not found
Please let me know if more info is needed.