Petals-SE-POJO 2.8.0+

Version 1 by Christophe DENEUX
on Jul 05, 2024 10:02.

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

Changes (9)

View Page History
{include:0 CDK SE Business Monitoring Flow Tracing Propagation 5.9.0}

{anchor:migration} {anchor:migrationguide}
h1. Migrating service units developped for previous versions
h1. Migration guide

As constraints on POJO class have changed with this new version of the Petals SE POJO, service units developped for previous versions must be updated with new POJO APIs.
h2. Migrating service units developed for previous versions

Only one API has changed:
{code}
onExchange(Exchange exchange, AbstractJBIListener jbiLIstener)
{code}
that is becommed:
{code}
onExchange(Exchange exchange, Optional<Boolean> currentFlowTracingActivation, AbstractJBIListener jbiLIstener)
{code}
To be deployed on this version of the Petals SE POJO, the Petals SE POJO service units must be migrated. Please follow the following chapters to know which changes must be applied.

So you can migrate your POJO classes adding the new parameter '{{currentFlowTracingActivation}}' to the API '{{onExchange(...)}}'.
h3. From 2.7.x to 2.8.x

Please apply the following changes in your Petals SE POJO service unit to migrate them from Petals SE POJO 2.7.x to Petals SE POJO 2.8.x:
* in your unit tests:
** JUnit 5 is now required for your unit tests,
** move Java EE package to Jakarta EE 9+ package:
*** {{javax.activation}} -> {{jakarta.activation}}
*** {{javax.mail}} -> {{jakarta.mail}}
*** {{javax.xml.bind}} -> {{jakarta.xml.bind}}
*** ...
** to generate your beans from an XSD or WSDL definition, use the Maven plugin '{{org.patrodyne.jvnet:hisrc-higherjaxb-maven-plugin}}' instead of '{{org.jvnet.jaxb2.maven2:maven-jaxb2-plugin}}'

h3. From 2.6.x to 2.7.x

Please apply the following changes in your Petals SE POJO service unit to migrate them from Petals SE POJO 2.7.x to Petals SE POJO 2.8.x:
* the following expected POJO API has been changed:
** {{onExchange(Exchange exchange, AbstractJBIListener jbiLIstener)}} --> {{onExchange(Exchange exchange, Optional<Boolean> currentFlowTracingActivation, AbstractJBIListener jbiLIstener)}}
* Placeholders are no more defined through {{Properties}} but through {{Placeholders}}.