Hi Anton,
Here is how you set the message ID:

                String requestID = "MY_MESSAGE_ID"
                
                if (StringUtils.isNotEmpty(requestID))
                {       
                        // get Message Addressing Properties instance
                AddressingBuilder builder =
AddressingBuilder.getAddressingBuilder();
                AddressingProperties maps = builder.newAddressingProperties();
        
                // set MessageID property
                AttributedURIType messageIDAttr =
                    WSA_OBJECT_FACTORY.createAttributedURIType();
                messageIDAttr.setValue(requestID);
                maps.setMessageID(messageIDAttr);
                        
                Map<String, Object> requestContext = new HashMap<String, 
Object>();
                requestContext.put(CLIENT_ADDRESSING_PROPERTIES, maps);
                senderExchange.getIn().setHeader(Client.REQUEST_CONTEXT ,
requestContext);
                }   

Cheers,
Yogesh

--
View this message in context: 
http://camel.465427.n5.nabble.com/CXF-component-with-WS-Addressing-and-one-way-messages-tp4370106p4922223.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to