|
WebLogic Server 6.0 Code Examples, BEA Systems, Inc. | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--examples.jta.jmsjdbc.ReceiveInTxBean
ReceiveInTxBean is a stateless session bean using bean-managed transaction. This EJBean illustrates distributed transactions and two phase commit across two XA resources: JMS queue, and Cloudscape database. It begins a distributed transaction, receives messages from the JMS queue, updates the database, and then commits the distributed transaction.
Constructor Summary | |
ReceiveInTxBean()
|
Method Summary | |
void |
ejbActivate()
This method is required by the EJB Specification, but is not used by this example. |
void |
ejbCreate()
This method is required by the EJB Specification, but is not used by this example. |
void |
ejbPassivate()
This method is required by the EJB Specification, but is not used by this example. |
void |
ejbRemove()
This method is required by the EJB Specification, but is not used by this example. |
void |
receiveMessages()
This method implements the receiveMessages method in the ReceiveInTx remote interface. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
Sets the session context. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public ReceiveInTxBean()
Method Detail |
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbCreate() throws javax.ejb.CreateException
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void receiveMessages()
public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext
in interface javax.ejb.SessionBean
ctx
- SessionContext Context for session
|
Documentation is available at http://e-docs.bea.com/wls/docs60 |
|||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |