com.ibm.websphere.sib.mediation.handler.ejb
Class GenericEJBMediationHandlerBean
- java.lang.Object
com.ibm.websphere.sib.mediation.handler.ejb.GenericEJBMediationHandlerBean
- public class GenericEJBMediationHandlerBean
- extends java.lang.Object
- implements javax.ejb.SessionBean
Implementation of a generic Stateless Session EJB which queries its deployment descriptor. The values retrieved from the deployment are:
- The fully qualified MediationHandler class which it is intended to wrap and invoke.
- Any properties which should be set on that class.
This EJB dynamically instantiates an instance of the MediationHandler class specified in the deployment descriptor. If any properties which exist on the MediationHandler instance are specified in the deployment descriptor then those properties are set using the value(s) specified.
For instance, if the DD has:
<env-entry>
<description>foo property </description>
<env-entry-name>foo</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>"aValue"</env-entry-value>
</env-entry>
then the property foo will be set by invoking setFoo(String) on the MediationHandler instance.
Security related checks are performed based on information defined in the EJBs deployment descriptor. This information is specified in the tooling and can be modified at application installation time.
Constructor Summary
Constructor and Description |
---|
GenericEJBMediationHandlerBean()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
ejbActivate()
Activate this instance of the session bean
|
|
ejbCreate()
Called on creation of an EJB instance.
|
|
ejbPassivate()
Passivate this instance of the session bean
|
|
ejbRemove()
Remove this instance of the session bean
|
|
getSessionContext()
Return the session context for this instance of the session bean
|
|
handle(javax.xml.rpc.handler.MessageContext messageContext)
Handle a message context (by passing it to the mediation handler).
|
|
setSessionContext(javax.ejb.SessionContext ctx)
Set the session context for this instance of the session bean
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
GenericEJBMediationHandlerBean
- public GenericEJBMediationHandlerBean( )
Method Detail
ejbCreate
- public void ejbCreate()
- throws javax.ejb.CreateException
javax.ejb.CreateException
- if the MediationHandler instance
could not be created or its properties could not be set. handle
- public boolean handle(javax.xml.rpc.handler.MessageContext messageContext)
- throws MessageContextException
messageContext
- The message context to be handled MessageContextException
- is thrown if the mediation handler throws it getSessionContext
- public javax.ejb.SessionContext getSessionContext( )
setSessionContext
- public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext
in interface javax.ejb.SessionBean
ctx
- The session context ejbActivate
- public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
ejbPassivate
- public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
ejbRemove
- public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean