Petals-SE-Camel 1.4.0+

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

Changes (3)

View Page History

Please apply the following changes in your Petals SE Camel service unit to migrate them from Petals 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}}
** 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}}',
** adjust your Java route definition to Apache Camel 4.0.x:
*** Replace the deprecated method 'exchange.getOut()' by 'exchange.getMessage()', except if you want to transform a fault received into an out message where the usage of '{{exchange.getOut()}}' is required,
*** Prefer to use 'doTry()/doCatch()/doFinally/end' instead of '{{isJbiFailed()}}' to catch exceptions,
* in 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}}
*** ...
** 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}}',
** JUnit 5 is now required for your unit tests,
** Rework your mocked endpoint definition with {{AdviceWith.adviceWith}} as something like: