com.bea.wli.sb.sources
Class JavaXmlSource

A JavaXmlSource represents the payload carried by the services that supports java objects as the arguments. It is comprised of a XML representation defining the shape of message body in the pipeline and a map containing java objects against the unique keys.

In the XML representation, java object arguments are substituted by <ctx:java-content ref='jcid:xyz' xmlns:ctx="http://www.bea.com/wli/sb/context" /> elements, having the value of the ref attribute equal to a key in the JavaObjects map that indexes the replaced java object.

Map contains the objects to be registered in pipeline java object repository against the unique ids as present in the XML representation

Example:

Let’s assume, we have an inbound jejb transport endpoint based on method myMethod(String, int, com.acme.SomeXMLObject, com.acme.SomePOJO). The proxy service configuration specifies the names “my-method” for the operation, and arg0, arg1, arg2 and arg3 for the arguments. When a transport invocation occurs and a JavaXmlSource is composed by the inbound endpoint, the XML representation will have the following contents:

JavaXmlSource(XmlObjectSource xmlSource, java.util.Map<java.lang.String,java.lang.Object> pojoMap)
Creates an instance of JavaXmlSource given a XML representation defining the shape of message body in the pipeline and a map containing java objects against the unique keys.

JavaXmlSource

Creates an instance of JavaXmlSource given a XML representation defining the shape of message body in the pipeline and a map containing java objects against the unique keys. Each object is expected to implement java.io.Serializable interface.

Parameters:

xmlSource - xml representation defining the shape of message body

pojoMap - the sequence of objects to be registered in pipeline java object repository against the unique ids as present in the XML representation