Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Lifecycle EJB's

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic