concept xml in category esb

appears as: XML, XML
Open-Source ESBs in Action: Example Implementations in Mule and ServiceMix

This is an excerpt from Manning's book Open-Source ESBs in Action: Example Implementations in Mule and ServiceMix.

A second main difference between EAI and ESB products is the use of open standards. EAI products like WebSphere Message Broker, TIBCO BusinessWorks, and Sonic XQ were mainly based on proprietary technology to implement messaging functionality and transformation logic. ESB products are based on open standards, such as Java Message Service (JMS), XML, J2EE Connector Architecture (JCA), and web services standards.

Figure 2.2. This example shows the use of the main concepts of Mule. A CSV file is sent to Mule with an FTP server, and Mule transforms the message to XML and sends it on to the payment system.
Listing 3.22. JiBX mapping illustrating how to map between XML and Java
<binding> <mapping name="person" class="esb.chapter3.Person"> <value name="customer-number" field="customerNumber"/> <value name="first-name" field="firstName"/> <value name="last-name" field="lastName"/> <value name="street" field="street"/> <value name="city" field="city"/> <value name="state" field="state"/> <value name="zip" field="zip"/> <value name="phone" field="phone"/> </mapping> </binding>

To be able to use the diving request message in the SendMuleEvent action handler, you must set the object in the process context . Because the communication between the jBPM container and the Mule ESB is implemented with XML messages, you use JiBX to serialize the request message to XML. Note that it’s not necessary to use XML messages here; it’s an implementation decision. You also could use serializable Java objects. But to have a clear distinction between the process engine and the ESB, XML may be a good choice.