|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.management.mejb.ManagementBean org.jboss.management.mejb.MEJBSession
Session layer for MEJB.
Constructor Summary | |
MEJBSession()
|
Method Summary | |
void |
ejbActivate()
The activate method is called when the instance is activated from its "passive" state. |
void |
ejbPassivate()
The passivate method is called before the instance enters the "passive" state. |
void |
ejbRemove()
A container invokes this method before it ends the life of the session object. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
Set the associated session context. |
void |
unsetSessionContext()
|
Methods inherited from class org.jboss.management.mejb.ManagementBean |
addNotificationListener, createMBean, ejbCreate, getAttribute, getAttributes, getDefaultDomain, getListenerRegistry, getMBeanCount, getMBeanInfo, invoke, isRegistered, queryNames, removeNotificationListener, setAttribute, setAttributes, toString, unregisterMBean |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MEJBSession()
Method Detail |
public void ejbActivate() throws javax.ejb.EJBException
ManagementBean
This method is called with no transaction context.
ejbActivate
in interface javax.ejb.SessionBean
ejbActivate
in class ManagementBean
javax.ejb.EJBException
- Thrown by the method to indicate a failure caused
by a system-level errorpublic void ejbPassivate() throws javax.ejb.EJBException
ManagementBean
After the passivate method completes, the instance must be in a state that allows the container to use the Java Serialization protocol to externalize and store away the instance's state.
This method is called with no transaction context.
ejbPassivate
in interface javax.ejb.SessionBean
ejbPassivate
in class ManagementBean
javax.ejb.EJBException
- Thrown by the method to indicate a failure caused
by a system-level errorpublic void setSessionContext(javax.ejb.SessionContext ctx) throws javax.ejb.EJBException
ManagementBean
This method is called with no transaction context.
setSessionContext
in interface javax.ejb.SessionBean
setSessionContext
in class ManagementBean
ctx
- A SessionContext interface for the instance. The instance
should store the reference to the context in an instance variable.
javax.ejb.EJBException
- Should something go wrong while seting the context,
an EJBException will be thrown.public void unsetSessionContext()
public void ejbRemove() throws javax.ejb.EJBException
ManagementBean
This method is called with no transaction context.
ejbRemove
in interface javax.ejb.SessionBean
ejbRemove
in class ManagementBean
javax.ejb.EJBException
- Thrown by the method to indicate a failure caused
by a system-level error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |