Petals-SE-Camel 1.4.0+

Version 1 by Christophe DENEUX
on Jul 04, 2024 16:19.

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

Changes (1)

View Page History

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

h1. Migration guide

To be deployed on this version of the Petals SE Camel, the Petals SE Camel service units must be migrated. Please follow the following chapters to know which changes must be applied.

h2. From 1.3.x to 1.4.x

Please apply the following changes in your Petals SE Camel service unit to migrate them from SE Camel 1.3.x to Petals SE Camel 1.4.x:
* in your route definitions and 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}}
*** ...
** the API {{MarshallingHelper.unmarshal(Message, Class<T>)}} has moved to {{MarshallingHelper.unmarshal(Exchange, Class<T>)}},
** 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}}'
* in your unit tests:
** JUnit 5 is now required for your unit tests,
** Rework your mocked endpoint definition with {{AdviceWith.adviceWith}} as something like:
{code}
AdviceWith.adviceWith(context, "onlyoffice-wrapper-convert", builder -> {
builder.interceptSendToEndpoint(CONVERTED_DOCUMENT_URL).skipSendToOriginalEndpoint()
.to(MOCK_HTTP_DOWNLOAD_EDP);
});
{code}
** the assertion '{{assertMockEndpointsSatisfied}}' is replaced by '{{assertIsSatisfied}}',
** Placeholders are no more defined through {{Properties}} but through {{Placeholders}}.

h2. From 1.2.x to 1.3.x

Please apply the following changes in your Petals SE Camel service unit to migrate them from SE Camel 1.2.x to Petals SE Camel 1.3.x:
* in your route definitions and unit tests:
** the Petals SE Camel JUnit Framework package has been changed to '{{org.ow2.petals.se.camel.junit}}' instead of '{{org.ow2.petals.camel.junit}}'.