Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

On this page, we are going to INLINE

Excerptreconfigure Camel to send messages to the JBI endpoints we've just created

...

Modifying MyCamelRoute class

If you look at the code below, it might come as no surprise that the only thing you need to know to interact with the JBI services is a specific URI syntax to refer to these services.

...

...

Send a message to a JBI endpoint

...

If you specify your namespace as xmlns:ns="http://servicemix.apache.org/tutorial/camel" instead of using the urn:-style we are using in this tutorial, this slightly changes the JBI URI in Camel as well, as it would use the '/' as a separator. Example: jbi:endpoint://http://servicemix.apache.org/tutorial/camel/jms/provider

For more information see the Camel JBI URI reference

...

Just run the Maven build again and redeploy the JBI SA to test your changes to the Camel RouteBuilder. After deployment, you should start seeing these kind of messages in your ServiceMix console:

...

...

This clearly shows you the Type Converters in action: the same message is printed as the original NormalizedMessage, a DOMSource and a plain String.

...

...



...