• Post Reply Bookmark Topic Watch Topic
  • New Topic

ejbCreat() in bean and creat() in Home

 
Mortin kim
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI.,
1. what is the diefference between EjbCreat() in bean class and Creat() in Home ref..
2.What is the purpose of ejbCreat() method..?
3.If I have two creat methods in HOme interface i need to provide 2 ejbCreate methods in Bean class...then How we can make difference between those methods.

Thanks
KIM
 
Henrique Ordine
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Home create() will be implemented by the stub created by the application server. Your ejbCreate()s will be invoked by the container when their respective create()s are called by clients. Any code you would like to run when your bean is created, should be placed in the ejbCreate() methods.
You might also want to know that ejbCreate()s serve different purposes on different types of EJBs: Stateless, Stateful or Entity.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!