LibraryToggle FramesPrintFeedback

To create a custom provider marshaler, you implement the org.apache.servicemix.jms.endpoints.JmsProviderMarshaler interface. The JmsProviderMarshaler interface, shown in Example 6.4, has two methods you need to implement:


createMessage()

The createMessage() method uses information from the Fuse ESB Enterprise core to generate a JMS message. Its parameters include the message exchange, the normalized message that is received by the provider, and the active JMS session.

populateMessage()

The populateMessage() method takes a JMS message and adds it to a message exchange for use by the Fuse ESB Enterprise core.

Example 6.5 shows a simple provider marshaler implementation.


Comments powered by Disqus