Re: How to connect to other system using JNDI
Posted By:
ankush_purwar
Posted On:
Wednesday, January 11, 2006 02:48 PM
JNDI is used to loacte the services on a particular server or not. It doesn't provide the way to connect to the remote box.
You can connect to remote box by using InitialContext object. When you are making object of Context at that time you can pass the so many properties like
initialcontextfactory , URL(Of server machine) (Try to see constants defined by Context Interface in java docs where you will find like PROVIDER_URL.
I hope you understands now.