posted 15 years ago
Hi,
Nobody calls enterprise beans directly, except containers. We have the interfaces to access the EJBs and we use Remote and Local interfaces for this. Below is the sequence of events.
1) Getting reference to home interface, typically using JNDI.
2) Call create method on home interface, that would result you the remote interface of the EJB.
3) Now you have the required interface and you can invoke the business methods on that interface.
This is what I know, from the earlier versions of EJB specs. But not sure if this holds good for EJB 3.0 and later. You may want to check the specs.
Thanks & Regards, SK
SCJP 5.0, DB2 - 800, DB2 - 803, SCDJWS (On the way)