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?
Ok, I was being dumb. The two clusters were using the same partition name. Once I changed the names everything worked ok.