3 Replies Latest reply on Jul 12, 2006 2:56 AM by jboss2005_01

    JNDI on a central server.

    jboss2005_01

      Hello everybody,


      One simple question. Is it possible to use JBoss 4.0.x to set-up a central JNDI server that is used by different JBoss ASs in a distributed J2EE application architecture?

      If I am correct, this has something to do with the ExternalContext that could be used, but I don't seem to find a lot of documentation about how to set-up this kind of stuff. Does anyone have some information or references on how to configure this?

      Second question, could the JBoss minimal configuration be used as central JNDI?


      Thank you,
      Kurt

        • 1. Re: JNDI on a central server.
          jboss2005_01

          Hmm, my question doesn't seem that easy :-(

          Can anyone provide me some useful information if possible please?
          I would be great if someone could assist me on this one :-)

          K.

          • 2. Re: JNDI on a central server.

            I don't think JBoss has built-in support for what you're asking. Here are a few alternatives.

            1) Bind using HA-JNDI. This requires use of the "all" server and your HA-JNDI entries will be replicated. This may be more heavy weight than what you're looking for but you'll get failover if your "central" JNDI node goes down.

            2) Access JNDI on your central server remotely. This won't help with JBoss lookups but your own code can avail itself of this.

            • 3. Re: JNDI on a central server.
              jboss2005_01

              Thanks for the alternatives.

              I was already afraid that this kind of support was not built-in. Perhaps something that would be nice for future releases ;-)
              I guess option 1 suits at best for me.

              Greetings,
              Kurt