• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejbCreate() in Statefull Session Beans - Doubt

 
Swapan Mazumdar
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic