where does JNDI store context binding information

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
 
C

Chris Smith

Cheok said:
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.

I don't really know anything about this, but a few different Google
results mention a ".bindings" file that's used to represent an object
that's stored with the RefFSContextFactory JNDI provider. You might
search for that, instead.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top