In addition to the home and remote interfaces, you need "stub" implementations of those classes on the client. These are generated in a vendor-specific way during application deployment, or in same cases, they are generated dynamically on the client. In any case, the server-side implementation is never needed on the client: when a method is invoked on a stub, the method request is sent over the network, and the server executes the logic when it receives it.
Bkail I am under impression that the implementation for home and remote interface comes on fly from server i. E on jndi. Lookup we get the implementation of home interface and on home.
Create gives the implementation of remote object. Is this not correct? As you said these stubs may be generated dynamically on client.
Are you refering the same process? If not can you please brief how are they are generated at client side? – Mohit Gupta Jul 19 at 17:43 In the internals of an EJB container there are several objects involved for a remote home and interface: client stub/proxy, server tie/skeleton, server home impl, and server object proxy.
From a client, you only need the stub/proxy for the home and object, and those are either generated at deploy time or dynamically using an RMI plugin (e.g. , RMIClassLoaderSpi). The server-side artifacts are also either generated at deploy time or dynamically, but those are not needed on the client. – bkail Jul 19 at 18:30 Thanks bkail.
Actually I am intersted in dynamically generation of proxy as you have mentioned using rmi plugin. My question here is can we send implementation of class (over network)as we have just have home/remote interface on client thru rmi? I am under impression that we send only state of object not implementation.
– Mohit Gupta Jul 20 at 18:11 It is possible to send the stub implementation. See RMIClassLoader.loadProxyClass. There is a codebase parameter that can be used to remotely load stub classes.
Since it is transferring class bytes and executing them locally, it only works when a security manager is enabled and the remote code source has been granted appropriate permissions. – bkail Jul 21 at 16:06.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.