C
Cheok Yan Cheng
here is the code snap frm a database program.
-----------------------------------------------------
String fsName = "jdbc/pjtutorial/mssql";
try{
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.fscontext.RefFSContextFactory");
Context ctx = new InitialContext(env);
ctx.bind(fsName, ds) ; // ds is data source object
-----------------------------------------------------
i was wondering where does JNDI store context binding information? i
try to search through all the .properties file in my computer but get
none of the information.
thank you.
regards
yan cheng
-----------------------------------------------------
String fsName = "jdbc/pjtutorial/mssql";
try{
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.fscontext.RefFSContextFactory");
Context ctx = new InitialContext(env);
ctx.bind(fsName, ds) ; // ds is data source object
-----------------------------------------------------
i was wondering where does JNDI store context binding information? i
try to search through all the .properties file in my computer but get
none of the information.
thank you.
regards
yan cheng