Petals-SE-Camel 1.0.1+

compared with
Version 6 by Victor NOËL
on Feb 26, 2016 10:08.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (5)

View Page History

The JBI exchange is transformed to a Camel exchange.
Its properties are put into the Camel exchange properties (by reference), prefixed by "PetalsOriginalProperty."
Its interface and service names, the endpoint, the operation name and the MEP are put into the Camel exchange properties "PetalsOriginalInterface" (as a QName), "PetalsOriginalService" (as a QName), "PetalsOriginalEndpoint" (as a ServiceEndpoint), "PetalsOriginalOperation" (as a QName), "PetalsOriginalPattern" (as an URI).
Its In normalized message is transformed to a Camel message.
Its properties are put into the Camel message headers (by reference).

The Camel exchange is transformed to a JBI exchange.
Its properties prefixed by "PetalsProperty." are put (without the prefix) into the JBI exchange properties (by reference).
Its In message is transformed to a normalized message.
Its headers are put into the normalized exchange properties (by reference).
{warning}

h1. Accessing Petals interface name, service, operation names, MEP, headers and endpoint information of a from() in the Camel route

The Camel exchange contains properties for the informations from the received Petals exchange.
They are named: "PetalsOriginalInterface" (a QName), "PetalsOriginalService" (a QName), "PetalsOriginalEndpoint" (a ServiceEndpoint), "PetalsOriginalOperation" (a QName), "PetalsOriginalPattern" (an URI).

Also, it contains all the headers of the received Petals exchange, they are prefixed by "PetalsOriginalHeader."

h1. Specifying service name, endpoint name, operation name, MEP and headers of a to() in the Camel route

Even though it's not the most recommended (because of its implicit nature), if no MEP is set neither on the Consumes or the Camel endpoint URI, then the MEP of the Camel exchange will be used.

h2. Setting headers on the Petals exchange

If the Camel exchange contains properties prefixed by "PetalsHeader.", then they will be added to the Petals exchange upon creation (without the prefix).

h1. Examples