View RSS Feed

EJB

The lifecycle of stateless bean

Rate this Entry
by
EJB
, 01-02-2012 at 06:03 PM (980 Views)
Stateless session beanís life cycle consists of 2 stages namely; ready for the invocation of the business method and non existent. Client initiates the life cycle by seeking references towards the stateless bean. Dependency injection is performed by the container and then the method annotated @PostConstruct is invoked. Now bean is ready to invoke the business methods by client. Method annotated @PreDestroy is called by the EJB container at the end of life cycle, if any. Then for garbage collection, beanís instance is ready.

Submit "The lifecycle of stateless bean" to Facebook Submit "The lifecycle of stateless bean" to Digg Submit "The lifecycle of stateless bean" to del.icio.us Submit "The lifecycle of stateless bean" to StumbleUpon Submit "The lifecycle of stateless bean" to Google

Categories
EJB Bean

Comments