• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Can I Create a JNDI "Super Namespace"?

 
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 268
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic