• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Lifecycle EJB's

 
Alexander Bischof
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i'm using Whizlabs SCEA Exam Simulator for preparing myself for part 1 and wondering (again!!!) about the following question:

Which of the following are invalid states in the life of a Stateful Session Bean

a Does Not Exists
b Method Ready Pool
c Method Ready in Transaction
d Method Ready
e Ready
f Pooled
g Passive

correct answers: b, e, f

Until now, i've oriented myself on the J2EE-Tutorials from Sun (http://java.sun.com/javaee/5/docs/tutorial/doc/bnbmt.html#bnbmw or http://java.sun.com/j2ee/1.4/docs/tutorial/doc/).

But they have only 'Does not exists', 'Ready' and 'Passive'. So i'm a little bit confused. Can someone help out?

Kind regards
Alex Bischof
--------------------
SCJP1.4, SCJP5, SCJD
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According EJB2.0 Specification following are states of life cycle for each bean

For Statefull bean
1.does not exist
2.method ready
3.passive
4.method ready in TX

For Stateless and Message driven bean
1.method ready
2.method ready pool

For Entity Bean
1.does not exist
2.pooled
3.ready
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic