2 Replies Latest reply on Apr 7, 2005 11:27 PM by spoonman464

    Referencing remote EJBs

    Mark Crompton Newbie

      Given two JBoss installations on seperate machines, a server and a client, is it possible for the client to lookup EJBs on the remote server just by configuring the ejb-jar.xml and jboss.xml on the client? Or do I have to write code to specifically lookup the remote EJBs via the remote server's JNDI?

      I'd presumed the lookup of remote EJBs could be done without any special code, just setting up the jboss.xml config, but I haven't been able to find anything related to this. Only the standalone Java client JNDI lookup.

      Many thanks,
      Mark

        • 1. Re: Referencing remote EJBs
          Wessel de Roode Newbie

          Think you can register your remote beans on only one jndi,
          that would do the trick i think.

          Wessel de Roode

          • 2. I have only succeeded using the JNDI lookup...
            spoonman464 Newbie

            ....when accessing EJBs remotely from a separate JVM. I don't really know for sure but I've always worked from the assumption that one server's JNDI directory only listed things from the same JVM, but I don't really know a lot about JNDI.

            Every time I've had the client and the EJB server running in separate JVMs, I've always written JNDI lookup code in the client. I can't imagine how it would work any other way nor can I imagine how you could declare everything you need within the deployment descriptors.

            The client JNDI lookup is not too hard to do, so I just do it that way.

            Spoon