posted 18 years ago
Hi Murthy,
When you download Home proxy stub, then all the communication you do is with the Home Interface. When you issue ejbCreate(), then what actually happens is that Application container, creates EJBObject and picks one of the bean instances from the pool and assigns it to it. Afterwards, this EJBObject proxy stub is sent to the client and client can issue business methods on that bean. In most of the cases the container has sufficient quanitity of bean instances in the pool and its matter of assigning EJBobject with that bean. This rest of the course of actions change depending on the type of the bean, whether it is stateful or stateless. But this doesn't apply to enity beans as ejbCreate() in that case is actually creating a data row in the underlying database ( or storage medium ). So it has different roles in different scenarios.