Petals-SE-POJO 2.6.0+

Version 1 by Christophe DENEUX
on Mar 12, 2018 12:14.

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

Changes (1)

View Page History
Note that once a {{sendAsync(...)}} has expired, the POJO does not have the ownership of the exchange anymore (because it was sent but never came back) and can't access anything else than the exchangeId and the exchange status! The {{AsyncContext}}, which can be subclassed when needed, is there to store needed information in these situations.

h3. Accessing placeholders

If some configuration parameters are needed for your service provider, you will use properties defined in the properties file configured at component level.

And so your properties can be accessed through the following API: {{jbiListener.getComponent().getPlaceHolders().getProperty("your-property-name")}}, where {{jbiListener}} is the JBI listener transmitted through methods {{onExchange(...)}}, {{onAsyncExchange(...)}} or {{onExpiredAsyncJBIMessage(...)}} of your POJO class.

h2. Service Configuration