jndi 2 « jndi « Java Enterprise Q&A





1. JNDI    forums.oracle.com

You will need to get references to each JNDI tree, but you don't have to do it each time. My recommendation would be singleton objects that hold those references that get initialized the first time anything tries to access that jndi tree. Just my thoughts on the subject, your milage may of course vary. PS.

2. JNDI look up    forums.oracle.com

I've been trying to puzzle this out myself, though only out of curiosity at present. Obviously you need a correctly initialized IntialDir Context and the right URL, but I'm finding it hard to turn up references to how such a connection is established. Presumably EJB containers listen for some kind of external JNDI connection: what protocol?. Presumably application servers can map ...

4. JNDI's main purpose    forums.oracle.com

5. basic JNDI question    forums.oracle.com

Read the "about JNDI" pages on Sun. Anyway, JNDI is just the extension API for Java-based programming access to local and remote network information servers (NIS). The "service" is actually a server that provides protocol access to multiple hosted services. LDAP, ActiveDirectory, etc. are all NIS servers. However, without having to know the exacts of each of these servers, a client ...

6. JNDI problem!!!!    forums.oracle.com

} } and always I try to execute this code, I got the following exception on my console: Exception in thread "main" javax.naming.CommunicationException: DNS error during zone transfer [Root exception is java.net.SocketException: Network is unreachable]; remaining name '' at com.sun.jndi.dns.DnsClient.queryZone(DnsClient.java:353) at com.sun.jndi.dns.Resolver.queryZone(Resolver.java:77) at com.sun.jndi.dns.DnsContext.populateZone(DnsContext.java:865) at com.sun.jndi.dns.DnsContext.getNameNode(DnsContext.java:843) at com.sun.jndi.dns.DnsContext.c_list(DnsContext.java:296) at com.sun.jndi.toolkit.ctx.ComponentContext.p_list(ComponentContext.java:555) at com.sun.jndi.toolkit.ctx.PartialCompositeContext.list(PartialCompositeContext.java:283) at com.sun.jndi.toolkit.ctx.PartialCompositeContext.list(PartialCompositeContext.java:270) at javax.naming.InitialContext.list(InitialContext.java:395) at c4u.ejb.DNSWalker.main(DNSWalker.java:20) Caused by: java.net.SocketException: ...

7. Create a new file using JNDI.    forums.oracle.com

I am trying to use JNDI to create a new binding while using 'RefFSContextFactory'. So what i am trying to do is create a new File using JNDI. However this code throws an exception javax.naming.OperationNotSupportedException: Can only bind References or Referenceable objects. import javax.naming.Context; import javax.naming.InitialContext; import java.io.IOException; import java.util.Hashtable; public class Main2 { public static void main(String [] rgstring) throws ...

8. JNDI    forums.oracle.com