1.4 Migration Guide
There are some changes in 1.4 that may break compatibility from 1.3 depending on the way you are using Mule. The following describes those changes and how to migrate.
When splitting Mule Configuration files In Mule 1.3.3 it was possible to put a <mule-descriptor> element in a single mule XML configuration file such as:
1 2 3 <mule-configuration> <mule-descriptor name="foo" className="org.Foo"/> </mule-configuration>
This no longer works in Mule 1.4 instead you have to declare all <mule-descriptor> elements in a <model> element. Such as:
1 2 3 4 5 <mule-configuration> <model type="seda" name="main"> <mule-descriptor name="foo" className="org.Foo"/> </model> </mule-configuration>
If you want to use the same <model> for every <mule-descriptor> across multiple configuration files you can declare the main model (as above) in the first first file to be processed and then use inherited models in the other configuration files, such as:
1 2 3 4 5 <mule-configuration> <model type="inherited" name="main"> <mule-descriptor name="bar" className="org.Bar"/> </model> </mule-configuration>
Notice the only difference is that the <model> type is inherited and the <model> name remains the same.
Some configuration elements and attributes have been deprecated. These will still work in 1.4 but will be removed for Mule 2.0.
The following attributes have been deprecated on the _<mule-descriptor> _ element: inboundEndpoint, outboundEndpoint, inboundTransformer, outboundTransformer and responseTransformer.
These should be used within here i.e. <inbound-router> and <outbound-router> elements.
<endpoint-identifier> elements have been removed in favor of using <global-endpoint> elements since global endpoints allow you to associate not only a logical name to a physical address, but also transaction security and transformer information.
Some transformers (for example, SerializableToByteArray) can handle UMOMessages differently from other objects; this capability could be switched on by setting a common property
sourceType. This turned out to be confusing; only those transformers that implement this behavior now have a property acceptUMOMessage which can be toggled to enable/disable the extra functionality. The
sourceType property has been removed. Instead of:
1 <property name="sourceType" value="UMOMessage" />
1 <property name="acceptUMOMessage" value="true"/>
when configuring a transformer.
The entire transport layer (that is, all classes implementing
UMOConnector/UMOMessageDispatcher etc.) received a significant overhaul for correctness, ease of use and scalability. Most notably it is now no longer possible to get programmatic access to a connector’s message dispatchers; for sending an event programmatically instead of using:
1 2 // assume ep is an UMOImmutableEndpoint ep.getConnector().getDispatcher(ep).dispatch(event);
please use the following, much simpler:
1 2 // assume ep is an UMOImmutableEndpoint ep.dispatch(event);
Unfortunately not all API changes could be finalized for 1.4.0, which is why we recommend that people with custom transports hold off migrating until 1.4.1. More detailed changes and instructions will be provided in a dedicated transport migration/architecture guide.