• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Web Technology

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
Ranch Hand
Posts: 5399
1
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 8953
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess it will be stored in memory.
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the EJB and Other J2EE Technologies forum.
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
reply
    Bookmark Topic Watch Topic
  • New Topic