during deployment process, i am giving a JNDI name for accessing bean. when i am lookup for that name, iam getting a Home Object stub. my question is, the JNDI name that i gave is assigned to Home Object or Home Object stub.
posted 10 years ago
In theory the name is assigned to the Home Object. In practice though the container is using dynamic proxies, which are quite different then the old RMI stubs. The container is also taking the advantage of the dynamic code downloading feature that RMI provides and download the stubs from a specified URL. This looks little bit odd at first and contrary to our intuition the clients don�t really need EJB stubs. Providing the home and remote interfaces should be enough. Regards.