jump to navigation

EJB in two minutes: a refresher June 23, 2005

Posted by javafoo in ejb, javanotes.
  • More detail here
  • You have your EJB server, container, EJBs and clients.
  • Entity Beans (think persistence), Session Beans (stateful/stateless), Mesage Driven Beans (needs no interface)

EJBs have:

  • Home Interface: provides methods for locating, creating, and removing instances of EJB classes, home object is implementation
  • Remote Interface: is the client facing interface, it has all the business methods.
  • Enterprise Java Bean: Is in the container result of deploying home and remote interface.
  • Create home interface by extending EJBHome
  • Create Remote interface by extending EJBObject
  • Define primary key object.
  • Create your Entity Bean implementing EntityBean

Typical lifecycle:

  • Locate home object, create or find remote object from home object, apply business methods on remote object


No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: