Re: Plase help me to distinguise the 2 ways of using RMI
Wednesday, September 24, 2008 08:38 AM
In the first way you are using the RMIRegistry where in you can use the program with the sun provided rmi registry only i.e. the code that you have written in dependent and not portable.
The second way as you are using the JNDI. The code you have written is independent of the JNDI service "com.sun.jndi.rmi.registry.RegistryContextFactory". In future you can simply change the factory and can use the same program to run with some other JNDI vendor.