This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes ejbCreate() in Statefull Session Beans - Doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "ejbCreate() in Statefull Session Beans - Doubt" Watch "ejbCreate() in Statefull Session Beans - Doubt" New topic
Author

ejbCreate() in Statefull Session Beans - Doubt

Swapan Mazumdar
Ranch Hand

Joined: Jul 23, 2003
Posts: 83
Hi,

Can any body tell me how many ejbCreate() methods may be defined for Statefull Session Beans. Ed Roman in his 3rd Ed. says that "You can only define only a single empty ejbCreate() method with no parameters".

I need some clarification. Please stir this post.

-Swapan
Gurumurthy Ramamurthy
Ranch Hand

Joined: Feb 13, 2003
Posts: 272
Stateless session beans should have only one ejbCreate() without any parameters.

Statefull session beans can have one or more ejbCreate() methods.

Thanks,
Guru
Swapan Mazumdar
Ranch Hand

Joined: Jul 23, 2003
Posts: 83
Originally posted by Gurumurthy Ramamurthy:
...Statefull session beans can have one or more ejbCreate() methods.

Yeah sure! I just realized that there are some typographic problems in Ed Roman's 3rd Ed. EJB book at page no 89. Headings have interchanged wrongly.

But thanks Guru...
 
 
subject: ejbCreate() in Statefull Session Beans - Doubt
 
Similar Threads
why ejb access in ejbCreate of sf session bean
Statefull Session beans are pooled ?
Basic Ejb Question
home.create and ejbCreate() ??
EJB basic Questions