File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web Technology

 
tejbir singh
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5382
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess it will be stored in memory.
 
Jason Menard
Sheriff
Posts: 6450
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the EJB and Other J2EE Technologies forum.
 
Chris Mathews
Ranch Hand
Posts: 2712
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic