This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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...
 
Don't get me started about those stupid light bulbs.
 
subject: ejbCreate() in Statefull Session Beans - Doubt
 
Similar Threads
EJB basic Questions
why ejb access in ejbCreate of sf session bean
Statefull Session beans are pooled ?
Basic Ejb Question
home.create and ejbCreate() ??