2 Replies Latest reply on Aug 24, 2005 8:30 AM by teknokrat

    getting remote ejb across firewall

    teknokrat

      I am trying to obtain a remote reference to an ejb in one jboss cluster from another. They are separated by a firewall. I have opened ports 1099, 4444, 1100 between them.

      The normal lookup on port 1099 works ok. However, when I try to use the HAJNDI port 1100 I get that the ejb is not bound naming exception. I assumed that this was because I had to set a new RmiPort and RmiObjectPort for HAJNDI to use. So I set these to 1199 and 1144 in cluster-service.xml and opened those ports. Nothing changed.

      I assume I am missing one or more ports that need opening but I can't figure out which ones from the documentation. Can someone tell me what i am missing please.

      thank you

        • 1. Re: getting remote ejb across firewall
          teknokrat

          Just to provide some details. I am using jboss 4.02 and the code for getting the ejb is

          Object ref = context.lookup(jndiName);
          EJBHome home = (EJBHome) javax.rmi.PortableRemoteObject.narrow(ref, klass);

          I have tracing on so I know that the system behind the firewall does receive the initial request on port 1100.

          So why is my ejb not bound when i use hajndi?

          cheers

          • 2. Re: getting remote ejb across firewall
            teknokrat

            Ok, I was being dumb. The two clusters were using the same partition name. Once I changed the names everything worked ok.