|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.sib.mediation.handler.ejb.GenericEJBMediationHandlerBean
public class GenericEJBMediationHandlerBean
Implementation of a generic Stateless Session EJB which queries its deployment descriptor. The values retrieved from the deployment are:
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 | |
---|---|
GenericEJBMediationHandlerBean()
|
Method Summary | |
---|---|
void |
ejbActivate()
Activate this instance of the session bean |
void |
ejbCreate()
Called on creation of an EJB instance. |
void |
ejbPassivate()
Passivate this instance of the session bean |
void |
ejbRemove()
Remove this instance of the session bean |
javax.ejb.SessionContext |
getSessionContext()
Return the session context for this instance of the session bean |
boolean |
handle(javax.xml.rpc.handler.MessageContext messageContext)
Handle a message context (by passing it to the mediation handler). |
void |
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 |
---|
public GenericEJBMediationHandlerBean()
Method Detail |
---|
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.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 itMediationHandler.handle(MessageContext)
public javax.ejb.SessionContext getSessionContext()
public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext
in interface javax.ejb.SessionBean
ctx
- The session contextpublic void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |