|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.activitysessions.ASContainerManagedEJB2.ASContainerManagedEJB2Bean
public class ASContainerManagedEJB2Bean
Constructor Summary | |
---|---|
ASContainerManagedEJB2Bean()
|
Method Summary | |
---|---|
boolean |
checkValues(boolean completeLTC,
boolean completionDirection)
This method checks that the values have the expected values at the end of the ActivitySession. |
void |
ejbActivate()
ejbActivate |
void |
ejbCreate()
ejbCreate |
void |
ejbPassivate()
ejbPassivate |
void |
ejbRemove()
ejbRemove |
void |
endLTC(boolean completionDirection)
This method will end the LTC in the direction being indicated by the value of the completionDirection parameter. |
javax.ejb.SessionContext |
getSessionContext()
getSessionContext |
void |
open()
This remote method is the first method the client calls on the EJB. |
void |
performUpdates()
This method uses the ActivitySession that is created in startActivitySession. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ASContainerManagedEJB2Bean()
Method Detail |
---|
public void open() throws java.lang.Exception
java.lang.Exception
- Signals that an exception of some sort has occurred.public void performUpdates() throws java.lang.Exception
java.lang.Exception
- indicates an unexpected error performing the methodpublic void endLTC(boolean completionDirection) throws java.lang.Exception
completionDirection
- boolean - LTC completion direction is determined
by the value of this parameter. true indicates commit, false indicates rollback.
java.lang.Exception
- indicates an unexpected error performing the methodpublic boolean checkValues(boolean completeLTC, boolean completionDirection) throws java.lang.Exception
completeLTC
- boolean - true indicates that the application explicitly ended the LTC.completionDirection
- boolean - true indicates that the LTC was committed, false indicates
that the LTC was rolled back. This is only relevant when completeLTC is true.
java.lang.Exception
- indicates an unexpected error performing the methodpublic javax.ejb.SessionContext getSessionContext()
public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext
in interface javax.ejb.SessionBean
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbCreate()
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |