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.
posted 8 years ago
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.