Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ejbCreate() in Statefull Session Beans - Doubt