O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

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

Enterprise JavaBeans

An Enterprise JavaBean is a special kind of JavaBean made for performing server-side business logic operations. When you create a regular JavaBean, you only need to create get/set methods for each property you want to define, maybe add some public methods and define addXXXListener and removeXXXListener methods to define any events. You might also want to create a BeanInfo object to describe your bean.

There are three kinds of Enterprise JavaBeans:

  • A session bean, which represents a conversation between a client and a server. There is usually one session bean per client and the session beans aren't persistent data objects—you don't store a session in the database.

  • An entity bean, which represents a persistent data object. Although ...

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