Bean things you can do in ejbRemove()

image with no caption

Use your SessionContext to:

get a reference to your home

get a reference to your EJB object

get security information about the client

force a transaction to rollback (CMT beans)

find out if the transaction has already been set to rollback (CMT beans)

get a transaction reference, and call methods on it (BMT beans)

Access:

your special JNDI environment

another bean’s methods

a resource manager (like a database)

Note

The bean things you can do in ejbRemove() are exactly the same as the bean things you can do in:

  • ejbCreate()

  • ejbPassivate()

  • ejbActivate()

Get Head First EJB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.