com.ibm.wsspi.sibx.mediation.flow.ejb
Class MediationFlowBean

java.lang.Object
  extended by com.ibm.wsspi.sibx.mediation.flow.ejb.MediationFlowBean
All Implemented Interfaces:
com.ibm.ws.sibx.mediation.flow.SIBXMediationFlowComponent, MediationFlowComponent, java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean

public class MediationFlowBean
extends java.lang.Object
implements javax.ejb.SessionBean, com.ibm.ws.sibx.mediation.flow.SIBXMediationFlowComponent

Local EJB bean class for mediation flow container lifecycle management. This stateless session bean with a local home and interface allows the EJB container to manage the lifecycle of runtime mediation flows.

See Also:
Serialized Form

Field Summary
static java.lang.String $sccsid
           
static java.lang.String COPYRIGHT
           
 
Constructor Summary
MediationFlowBean()
           
 
Method Summary
 void ejbActivate()
          No specific action required.
 void ejbCreate()
          Called when the bean instance is created.
 void ejbPassivate()
          No specific action required.
 void ejbRemove()
          No specific action required.
 javax.ejb.SessionContext getSessionContext()
          getSessionContext
 void invokeEventFlow(com.ibm.ws.sibx.mediation.esb.SIBXEvent event, commonj.sdo.DataObject message, com.ibm.wsspi.sibx.mediation.flow.action.FlowActionFactory flowAction)
           
 void invokeFaultFlow(MediationFlowKey key, commonj.sdo.DataObject message, com.ibm.wsspi.sibx.mediation.flow.action.FlowActionFactory flowAction)
          Invoke the fault flow identified by the supplied key.
 void invokeRequestFlow(MediationFlowKey key, commonj.sdo.DataObject message, com.ibm.wsspi.sibx.mediation.flow.action.FlowActionFactory flowAction)
          Invoke the request flow identified by the supplied key.
 void invokeResponseFlow(MediationFlowKey key, commonj.sdo.DataObject message, com.ibm.wsspi.sibx.mediation.flow.action.FlowActionFactory flowAction)
          Invoke the response flow identified by the supplied key.
 void setSessionContext(javax.ejb.SessionContext ctx)
          setSessionContext
 void transactionNotSupportedWriteContext(com.ibm.wsspi.sibx.context.ContextStore contextStore, java.lang.String key, long timeout, com.ibm.wsspi.sibx.context.Context context)
          Writes context information to the context store using a local transaction scope
 void transactionSupportsWriteContext(com.ibm.wsspi.sibx.context.ContextStore contextStore, java.lang.String key, long timeout, com.ibm.wsspi.sibx.context.Context context)
          Writes context information to the context store using the transaction scope of the global transaction (if any).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

$sccsid

public static final java.lang.String $sccsid
See Also:
Constant Field Values
Constructor Detail

MediationFlowBean

public MediationFlowBean()
Method Detail

getSessionContext

public javax.ejb.SessionContext getSessionContext()
getSessionContext

Returns:
the EJB Session context

setSessionContext

public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext

Specified by:
setSessionContext in interface javax.ejb.SessionBean
Parameters:
ctx - the context

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
Called when the bean instance is created.

Throws:
javax.ejb.CreateException - if there is a problem during the create

ejbActivate

public void ejbActivate()
No specific action required. ejbActivate

Specified by:
ejbActivate in interface javax.ejb.SessionBean

ejbPassivate

public void ejbPassivate()
No specific action required. ejbPassivate

Specified by:
ejbPassivate in interface javax.ejb.SessionBean

ejbRemove

public void ejbRemove()
No specific action required. ejbRemove

Specified by:
ejbRemove in interface javax.ejb.SessionBean

invokeRequestFlow

public void invokeRequestFlow(MediationFlowKey key,
                              commonj.sdo.DataObject message,
                              com.ibm.wsspi.sibx.mediation.flow.action.FlowActionFactory flowAction)
                       throws MediationRuntimeException,
                              MediationConfigurationException,
                              MediationBusinessException
Description copied from interface: MediationFlowComponent
Invoke the request flow identified by the supplied key.

Specified by:
invokeRequestFlow in interface MediationFlowComponent
Parameters:
key - the key identifying the request flow to invoke
message - the message to mediate
flowAction - the flow action factory
Throws:
MediationRuntimeException - thrown by mediation runtime
MediationConfigurationException - thrown by mediation primitives
MediationBusinessException - thrown by mediation primitives
See Also:
MediationFlowComponent.invokeRequestFlow(com.ibm.wsspi.sibx.mediation.flow.MediationFlowKey, commonj.sdo.DataObject, com.ibm.wsspi.sibx.mediation.flow.action.FlowActionFactory)

invokeResponseFlow

public void invokeResponseFlow(MediationFlowKey key,
                               commonj.sdo.DataObject message,
                               com.ibm.wsspi.sibx.mediation.flow.action.FlowActionFactory flowAction)
                        throws MediationRuntimeException,
                               MediationConfigurationException,
                               MediationBusinessException
Description copied from interface: MediationFlowComponent
Invoke the response flow identified by the supplied key.

Specified by:
invokeResponseFlow in interface MediationFlowComponent
Parameters:
key - the key identifying the response flow to invoke
message - the message to mediate
flowAction - the flow action factory
Throws:
MediationRuntimeException - thrown by mediation runtime
MediationConfigurationException - thrown by mediation primitives
MediationBusinessException - thrown by mediation primitives
See Also:
MediationFlowComponent.invokeResponseFlow(com.ibm.wsspi.sibx.mediation.flow.MediationFlowKey, commonj.sdo.DataObject, com.ibm.wsspi.sibx.mediation.flow.action.FlowActionFactory)

invokeFaultFlow

public void invokeFaultFlow(MediationFlowKey key,
                            commonj.sdo.DataObject message,
                            com.ibm.wsspi.sibx.mediation.flow.action.FlowActionFactory flowAction)
                     throws MediationRuntimeException,
                            MediationConfigurationException,
                            MediationBusinessException
Description copied from interface: MediationFlowComponent
Invoke the fault flow identified by the supplied key.

Specified by:
invokeFaultFlow in interface MediationFlowComponent
Parameters:
key - the key identifying the fault flow to invoke
message - the message to mediate
flowAction - the flow action factory
Throws:
MediationRuntimeException - thrown by mediation runtime
MediationConfigurationException - thrown by mediation primitives
MediationBusinessException - thrown by mediation primitives
See Also:
MediationFlowComponent.invokeFaultFlow(com.ibm.wsspi.sibx.mediation.flow.MediationFlowKey, commonj.sdo.DataObject, com.ibm.wsspi.sibx.mediation.flow.action.FlowActionFactory)

invokeEventFlow

public void invokeEventFlow(com.ibm.ws.sibx.mediation.esb.SIBXEvent event,
                            commonj.sdo.DataObject message,
                            com.ibm.wsspi.sibx.mediation.flow.action.FlowActionFactory flowAction)
                     throws MediationRuntimeException,
                            MediationConfigurationException,
                            MediationBusinessException
Specified by:
invokeEventFlow in interface com.ibm.ws.sibx.mediation.flow.SIBXMediationFlowComponent
Throws:
MediationRuntimeException
MediationConfigurationException
MediationBusinessException
See Also:
SIBXMediationFlowComponent.invokeEventFlow(com.ibm.ws.sibx.mediation.esb.SIBXEvent, commonj.sdo.DataObject, com.ibm.wsspi.sibx.mediation.flow.action.FlowActionFactory)

transactionSupportsWriteContext

public void transactionSupportsWriteContext(com.ibm.wsspi.sibx.context.ContextStore contextStore,
                                            java.lang.String key,
                                            long timeout,
                                            com.ibm.wsspi.sibx.context.Context context)
                                     throws com.ibm.wsspi.sibx.context.DuplicateKeyException,
                                            com.ibm.wsspi.sibx.context.StoreException
Writes context information to the context store using the transaction scope of the global transaction (if any).

Parameters:
contextStore - the context store
key - the key used to identify this context
timeout - the the time (in milliseconds) after which the context is removed from the store
context - the context to store
Throws:
com.ibm.wsspi.sibx.context.StoreException
com.ibm.wsspi.sibx.context.DuplicateKeyException

transactionNotSupportedWriteContext

public void transactionNotSupportedWriteContext(com.ibm.wsspi.sibx.context.ContextStore contextStore,
                                                java.lang.String key,
                                                long timeout,
                                                com.ibm.wsspi.sibx.context.Context context)
                                         throws com.ibm.wsspi.sibx.context.DuplicateKeyException,
                                                com.ibm.wsspi.sibx.context.StoreException
Writes context information to the context store using a local transaction scope

Parameters:
contextStore - the context store
key - the key used to identify this context
timeout - the the time (in milliseconds) after which the context is removed from the store
context - the context to store
Throws:
com.ibm.wsspi.sibx.context.StoreException
com.ibm.wsspi.sibx.context.DuplicateKeyException