René Nyffenegger's collection of things on the web | |
René Nyffenegger on Oracle - Most wanted - Feedback
- Follow @renenyffenegger
|
EJB (Enterprise Java Beans) | ||||
Types of EJBEntity Beans
Entity Beans represent persistent busieness data, for example a row in a database table. They are shared between clients.
Session Beans
Session Beans implement logic that is specific to one client session. A session bean is not shared between clients.
Message-Driven BeansThe three simple requirements for a beanEmpty constructor
A bean must have zero argument constructor.
No public instance variablesNo public instance variablesgetSomePersistentValue(), setSomePersistentValue()
Persistent values should be accessed through calls to
get...() and set...() methods.
Booleans' values are retrieved using
isSomeBooleanValue()
Links |