Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I Create a JNDI "Super Namespace"?

 
sever oon
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic