aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Can I Create a JNDI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Can I Create a JNDI "Super Namespace"?" Watch "Can I Create a JNDI "Super Namespace"?" New topic
Author

Can I Create a JNDI "Super Namespace"?

sever oon
Ranch Hand

Joined: Feb 08, 2004
Posts: 268
Hi all,

I want to deploy several EARs on the same EJB server, each in their own JNDI namespace. Then, I want to create a "super" JNDI namespace that will bind each of the other namespaces as a separate context. I've heard this is possible...is it?

For instance, I have three different EARs that contain FooEjb. I deploy each EAR using its own separate JNDI namespace so that, within each separate namespace, FooEjb has the same JNDI name. Then, I (somehow) create a fourth JNDI namespace that binds EAR1's namespace under subcontext app1, EAR2's under app2, and EAR3's under app3. Clients to these three apps may then use this fourth JNDI namespace and can reference each apps FooEjb as .../app1/.../FooEjb, .../app2/.../FooEjb, and .../app3/.../FooEjb.

Any help greatly appreciated--please keep in mind my only experience working with JNDI is doing standard EJB lookups and I'm not really all that familiar with JNDI itself.

Thanks!
sev
sever oon
Ranch Hand

Joined: Feb 08, 2004
Posts: 268
Since asking this question I've figured out that one of the main functions of JNDI is to "federate" different namespaces...this is basically what I want to do. Except, instead of federating NDS, LDAP, and NIS+ name services, I want to federate three JNDI name services into one. Anyone out there that can provide any guidance?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can I Create a JNDI "Super Namespace"?