e hënë, 18 qershor 2007

Life cycle methods of Stateless Session Beans

Stateless Session Bean
------------------------------------
1) does not exist --> bean is does not exist state
a) create() --> a bean instance is created
b) setSessionContext() --> instanciates the bean object
c) ejbCreate() --> allows to perform operations after the bean instance created and before it starts processing request like create database connection.

2) Ready
a) ejbRemove() --> to perform certain operations before bean object is removed or garbage collected. e.g. close database connection.
b) remove() --> removes the bean instance or makes it ready for garbage collection.

Nuk ka komente: