Java Glossary : EJB

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : E words : EJB.

EJB
Enterprise Java Beans. Enterprise beans don't have a GUI interface. Enterprise Java Beans speak CORBA IIOP for their RMI. Session Beans maintain conversational context for one client. Entity beans cache data for one row of a database. Entity beans also provide a simple persistent object database, indexed by a primary key. The Entity bean learns its primary key at create time, and may persist indefinitely. Beans make it easier to implement transaction logic with commit/rollback. The transaction processing logic helps keeps beans from interfering with each other. EJBs use JNDI to find objects. They use RMI (regular or IIOP Corba) to communicate between servers. They use JTA for transaction management.

The point of EJB is to fob much of the work of concurrency, transaction handling and persistence off on the container so the beans can concentrate on business logic.

There are several types of beans. This diagram outlines them:

bean types

Beans communicate via two proxy objects, one that implements the bean's home (bean-finding) interface and one that implements its remote (business-logic) interface. The indirection allows the EJB container to intercept the calls and add functionality such as persistence.

book_coverBuilding Java Enterprise Applications Volume I: Architecture
0-596-00123-1
Brett McLaughlin
Aimed at experienced developers. Filled with particularly good advice on using EJBs and LDAP directory services Highly recommended. First volume of a three volume set on J2EE.
amazon.com Barnes and Noble
amazon.ca chapters
amazon.co.uk amazon.de

book_coverEnterprise Java Beans
1-56592-605-6
Richard Monson-Haefel
amazon.com Barnes and Noble
amazon.ca chapters
amazon.co.uk amazon.de
There are many different ways of using EJBs, sometimes called idioms. The Urban Code people have done some benchmarks comparing these programming styles.
BEA Weblogic make one of the best known EJB servers. Pramati EJB 2.0 ¤ EJBoss ¤ IBM essay on EJBs: There are many other essays at the IBM site ¤ J2EE ¤ JNDI ¤ JTA ¤ OpenEJB ¤ RMI


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 2568.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/ejb.html J:\mindprod\jgloss\ejb.html