questuin about JDNI Properties p=new new Properties(); p.put=...... Context c=new INitialContext(p)
My question is when need p and when don't need p. thanks ps: who can provide material about it in internet?
shai koren
Ranch Hand
Joined: Nov 04, 2001
Posts: 48
posted
0
liang you can initialize your context with Properties supplyed in the parameter and / or without. The context in initialization will look for your Resource Files ( either proveider resource files e.g jndiprovider.properties or application resource file e.g. jndi.properties) that you may have somewhere in you App-Server directory. In addition, if the file %root%/lib/jndi.properties exists and is readable, JNDI treats it as an additional application resource file. All of the properties contained in these files are placed into the environment of the initial context. This environment is then inherited by other contexts. you could also supply some details when you start your server with the right parameters.