Accessing JMS Transport headers and properties in message flow

In this recipe, we will show how to access the JMS Transport headers and properties in the message flow. This can be useful, for example, to decide for which different business services the message should be routed to.

We will implement a decision based on the JMS header JMSPriority and another decision based on the user-defined property myProperty.

Getting ready

For this recipe, we will use the queue SourceQueue from the OSB Cookbook standard environment.

Import the base OSB project containing the solution from the previous recipe into Eclipse from \chapter-3\getting-ready\accessing-jms-transport-headers-in-message-flow.

How to do it...

In Eclipse OEPE, perform the following steps to add ...

Get Oracle Service Bus 11g Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.