ESB is an Entireprise Service Bus is a Desing time or programming period to help developers decompose complex problem into descreet units of functions. ESB Separates process logic from the integration logic.ESB provides Service Virtualization in handling the machanism of connecting service including Routing Messages, Convert Transport Protocols and Transforms Messages between Service Consumer and Service Provider.
When we are working in ESB environment we need to understand the elements of Data representaions like SDO, BO and SMO.
SDO : Is the fundamental data model used to SCA.
BO : Primary data structure for business data. it is extension of SDO model. and used to exchange data between application components.
SMO : Represent message operated on mediation primitives within Mediation Flow.
Structure of SMO :
Mainly devided into 3 parts, they are Headers, Context and Body.
Headers : It contains information of the import or Export Bindings. The headers type may following of types.
Context :
Context is a scrach pad or a temparary area for the data which is passed between the mediation primitives. and it is used to maintained state data about runtime process activity.
Types of Contexts :
There some types of Contexts like Correlation, Shared, Trantient and failInfo.
Correlation context is used to maitained data in both Request flow or Response Flow.
Shared Context is used to maintained data in only Request or Response Flow.
FailInfo context is used to describe the Runtime Processing Exception.
Manipulation of SMO:
It can be done by using the XPath expression, XSL style sheets and Java code.
List of Classes used to Manipulate SMO :
Package : com.ibm.websphere.bo
Classes :
BOFactory :To create an instance of BO.
BOXMLSerializer : To convert BO into XML.
BOCopy : To Copy BO into an other BO.
BOXMLDocument : Allows the manipulation of BO as an XML Document.