SIMessageContext

This topic describes the interface which abstracts the message context processed by a message handler.

public interface SIMessageContext extends javax.xml.rpc.handler.MessageContext.

This is the object that is required on the interface of a mediation handler. In addition to the context information that may be passed from one handler to another, it can return a reference to an SIMessage and an SIMediationSession. The SIMessage is the Service integration technologies representation of the message being processed by the MediationHandler The SIMediationSession is a handle to the run time resources.

The interface MessageContext abstracts the message context that is processed by a handler in the handle method. The MessageContext interface provides methods to manage a property set. MessageContext properties enable handlers in a handler chain to share processing related state.

As well as defining the method which will be invoked by the mediation runtime, the interface may also specify properties following the Enterprise JavaBeans™ naming pattern, or by providing a BeanInfo class. Each property of the bean will be initialized from a single environment entry with the same name as the property. Bean properties of simple type are specified using Java™ 2 Platform, Enterprise Edition (J2EE) env-entry. If the handler has properties that are of non-simple type, then other environment definitions may be used.

The API has two methods:
  • getSIMessage: Method to get the service integration bus representation of the message being mediated. Read more about the SIMessage API in SIMessage.
  • getSession: Method to get an SIMediationSession object which is a handle to the core runtime. Read more about the SIMediationSession API in SIMediationSession.

For more information about SIMessageContext, see the SIMessageContext generated API information.




Subtopics
SIMessage
SIMediationSession
Related tasks
Working with the message payload
Reference topic    

Terms of Use | Feedback

Last updated: Feb 19, 2011 5:25:36 AM CST
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=v610web&product=was-nd-mp&topic=rjy1300
File name: rjy1300.html