I can use the following java options to specify the properties of JNP when I run the client application,
-Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
-Djava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces"
-Djava.naming.provider.url=jnp://HOST:1100
But how do I add the following properties,
jnp.socketFactory=org.jnp.interfaces.TimedSocketFactory
jnp.timeout=0
jnp.sotimeout=0
without programming inside my application?
My understanding is that the file "jndi.properites" under "...\conf" was read by the server, my client application does not acess this file, there is no use to add these properties to "jndi.properties" either.
Thanks.
Only the java.naming properties are read by JVM code.
If you don't want to put them in your code, you need a jndi.properties file
in the client's classpath.
Regards,
Adrian