WAS v8.5 > Reference > Developer detailed usage informationSIMessageContext
Public interface SIMessageContext extends javax.xml.rpc.handler.MessageContext. This is the object required on the interface of a mediation handler. In addition to the context information that might 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 runtime 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 that is invoked by the mediation runtime environment, the interface might 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 EE 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:
- The getSIMessage method to get the service integration bus representation of the message being mediated. Read more about the SIMessage API in SIMessage.
- The getSession method to get an SIMediationSession object that is a handle to the runtime environment. Read more about the SIMediationSession API in SIMediationSession.
Subtopics
- SIMessage
The SIMessage interface is the public interface to a service integration bus message for use by mediations and other service integration bus components. This interface extends java.lang.Cloneable and java.lang.Serializable.- SIMediationSession
The SIMediationSession public interface defines the methods for querying and interacting with the service integration bus. As well as defining the methods for working with the service integration bus, this interface also includes methods that provide information about where the mediation is invoked from, and the criteria that are applied before the message is mediated.
Related concepts:
Mediation programming