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) ... |
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.