O'Reilly logo

Head First EJB by Bert Bates, Kathy Sierra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Bean things you can do in home business methods

Use your EntityContext to:

get a reference to your home

get a reference to your EJB object

get your primary key

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 only, so entities can’t use this)

Access:

your special JNDI environment

another bean’s methods

a resource manager (like a database) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required