Professional Documents
Culture Documents
Aurea Messenger Workbench Migration Guide
Aurea Messenger Workbench Migration Guide
Aurea Messenger Workbench Migration Guide
Third party
libraries used in Aurea Messenger such as Spring-framework, Apache Cxf, Apache Camel are
also updated.
Existing Sonic Connect projects will be affected by this upgrade. Some migration steps need to
be executed in order to run these existing projects in the newer version.
This document explains the required steps.
1. Extensions are automatically loaded in CXF. Explicit inclusion of cxf extensions need to
be removed. Example lines to be deleted
esource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
<import r
<import r esource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/>
<import r esource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml"/>
2. Since all spring, cxf and camel libraries have been upgraded, schema locations
referencing old versions of libraries need to be updated. (Xsd reference without a
reference will use the latest version). Example Changes:
xsi:schemaLocation="
http://camel.apache.org/schema/cxf
http://camel.apache.org/schema/cxf/camel-cxf-2.0.7.xsd">
xsi:schemaLocation="
http://camel.apache.org/schema/cxf
http://camel.apache.org/schema/cxf/camel-cxf.xsd">
<camel:camelContext id="camel">
4. Header name attribute has been changed from headerName to name in xsd files.
headerName attribute needs to set name. Example changes:
<camel:setHeader headerName="ANY">
should be converted to
<camel:setHeader name="ANY">
5. org.apache.camel.processor.RedeliveryPolicy has been refactored.
a. Package name needs to be updated. New package is
org.apache.camel.processor.errorhandler.RedeliveryPolicy
Example Changes :
<bean id="myRedeliveryPolicy"
class="org.apache.camel.processor.RedeliveryPolicy">
<property name="maximumRedeliveries" value="5"/>
<property name="redeliverDelay" value="0"/>
</bean>
Needs to be updated as
<bean id="myRedeliveryPolicy"
class="org.apache.camel.processor.errorhandler.RedeliveryPolicy">
<property name="maximumRedeliveries" value="5"/>
<property name="redeliveryDelay" value="0"/>
</bean>
<security:authentication-manager alias="authenticationManager"/>
<security:authentication-provider>
<security:user-service>
<security:user name="customerbob" password="bobspassword”
authorities="ROLE_CUSTOMER" />
</security:user-service>
</security:authentication-provider>
Needs to be changed to
<security:authentication-manager alias="authenticationManager">
<security:authentication-provider>
<security:user-service>
<security:user name="customerbob" password="{noop}bobspassword"
authorities="ROLE_CUSTOMER" />
</security:user-service>
</security:authentication-provider>
</security:authentication-manager>
7. cxfbean component for rest endpoints has been deprecated and removed.
It will be replaced by jaxrs server and cxfrs components.
<camel:to uri="cxfbean:Bean.org.example.resources.PatientList"/>
a. JaxRs & Camel transports schemas should be added if they don’t exist.
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.springframework.org/schema/beans"
xmlns:camel="http://camel.apache.org/schema/spring"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xmlns:cameltransport="http://cxf.apache.org/transports/camel"
xsi:schemaLocation="
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
http://cxf.apache.org/jaxrs
http://cxf.apache.org/schemas/jaxrs.xsd
http://cxf.apache.org/transports/camel
http://cxf.apache.org/transports/camel.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd”>
<bean id="xhttpMethodOverrideFilter"
class="com.progress.sonic.esb.camel.XHttpMethodOverrideFilter">
<camel:to uri="cxfbean:Bean.org.example.resources.PatientList"/>
<camel:to uri="direct:rsServer"/>
8. cxfbean component for jaxws endpoints has been deprecated and removed.
It will be replaced by jaxws server and cxf endpoint components.
<camel:to uri="cxfbean:org.example.patientservice.PatientImpljaxwsBean"/>
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.springframework.org/schema/beans"
xmlns:camel="http://camel.apache.org/schema/spring"
xmlns:cxf="http://camel.apache.org/schema/cxf"
xmlns:tns="http://www.example.org/patientservice/"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:cameltransport="http://cxf.apache.org/transports/camel"
xsi:schemaLocation="
http://camel.apache.org/schema/cxf
http://camel.apache.org/schema/cxf/camel-cxf.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
http://cxf.apache.org/transports/camel
http://cxf.apache.org/transports/camel.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/transports/camel
http://cxf.apache.org/transports/camel.xsd
">
<cxf:cxfEndpoint id="wsEndpoint"
serviceClass="org.example.patientservice.Patient"
address="camel://direct:wsServer">
<cxf:properties>
<entry key="dataFormat" value="MESSAGE"/>
</cxf:properties>
</cxf:cxfEndpoint>
<camel:to
uri="cxfbean:org.example.patientservice.PatientImpljaxwsBean"/>
by
<camel:to uri="cxf:bean:wsEndpoint"/>
9. With the release 12.0.0 Workbench component will be using a newer version (4.13) of
Eclipse. Since existing workspaces are created by the old version they need to be adjusted to
work with the new workbench.
After opening existing workspaces for the first time, the clean parameter can be deleted. It
is not necessary to remove it. But it will slow down the workbench startup. This is valid for each
and every one of old workspaces you have. Please close the Workbench after you set the
-clean parameter and start again for each and every one of the old workspaces you switch
once. Do not use File > Restart option for this.
10. Many third-party libraries have been updated. For existing maven based projects, update
projects with "Force Update" should be done in workbench.