File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Web Technology Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Web Technology" Watch "Web Technology" New topic
Author

Web Technology

tejbir singh
Greenhorn

Joined: Jul 24, 2003
Posts: 1
Hi
Can any one tell me where are the name values pairs after they are bind using JNDI.
Please see the below code.
import java.io.*;
import java.util.*;
import java.lang.*;
import java.net.*;
import javax.naming.*;
public class Test1
{
public static void main(String arg[]) throws IOException
{
try{
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"jrun.naming.JRunContextFactory");
env.put(Context.PROVIDER_URL, "163.37.2.175:2908");
Context ctx = new InitialContext(env);
String s = new String("23472");
ctx.bind("aman",s);
}
catch(NamingException w)
{
System.out.println(w);
}
}
}
Can any one tell me IN WHICH FILE can i see aman=23472.
Thanks :roll:
R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5370
I am sorry but this is not the correct forum to ask EJB related question.
Please post you question here. and then delete the this post from here.


"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

I guess it will be stored in memory.


Groovy
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
Moved to the EJB and Other J2EE Technologies forum.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Originally posted by tejbir singh:
Can any one tell me IN WHICH FILE can i see aman=23472.

What makes you think they are stored on disk? It is entirely up to the Application Server as to how JNDI entries are managed and I would venture that most store this stuff in-memory.
Why do feel that you need to know how the Application Server implements JNDI? The implementation of JNDI does not and should not have any effect on writing code that uses JNDI.
Since you are using JRun, if you really need to know this information then I would suggest you contact Macromedia for more details (we don't have a JRun Forum nor do I know anyone that seriously uses it).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web Technology
 
Similar Threads
problem with LDAP
A small EJB problem in the NamingContextFactory
Remote JNDI/EJB Problem
connecting a servlet to a JavaBean
How to get Weblogic server instance info in a java class