Professional Documents
Culture Documents
• Enterprise Java Beans are server side components that are meant to
perform server side operations such as executing complex
algorithms or performing high volume business transactions
• Server side components needs to run in a highly available, fault
tolerant, transactional and multiuser secure environment
• An application server provides highend server side environment for
the enterprise java beans and provides the runtime containment
necessary to manage enterprise java beans
Enterprise Java Beans
Session Beans
• Session beans are business process objects that implements
business logic, business rules and workflow
• Session beans are reusable components that contain logic for
business processes
• A session bean can perform price quoting, order entry, video
compression, banking transactions, stock trades, complex
calculations etc.
• Session beans are called session beans because they live for about
as long as the session of the client code that is calling the
session bean exists
• Session beans are usable by one client at a time and they are not
shared between clients
• The EJB container is responsible for managing the lifetime of beans
• The container destroys session beans at the appropriate time
• There are two subtypes of session beans the stateful session beans
and stateless session bean
Stateful Session Beans