What classes does a client application need to access EJB?
The mechanhism is as follows.
- The client uses the JNDI context to get a remote reference (stub) to the home object ( the EJBHome).
- It uses the home to get a remote reference (stub) to the EJBs remote object (the EJBObject)
- It then invokes business methods on this remote object.
In addition to these, the client would need the JNDI factory implementation, and the remote and home stubs. In some EJB servers the Factory and/or stubs can be dynamically loaded at run time. In other EJB servers they must be in the classpath of the client application.