Created a test app (which is attached) and deployed the ebj3 beans as ejb_app.ejb3 on a jboss-4.0.4RC1 instance (with ejb3 installed via gui installer). Made the following config changes:
run.bat - included the following:
set JAVA_OPTS=-Djava.rmi.server.hostname="24.99.54.78" -Djava.rmi.server.uselocalHostname=false %JAVA_OPTS%
so that the rmi stub for jndi gets the external ip instead of using local one.
jboss-4.0.4RC1/server/default/deploy/ejb3.deployer/META-INF/jboss-service.xml - changed remoting Connector config to:




























Started jboss server using -b flag (i.e. run -b 192.168.1.104)
Then deploy ejb3 to server and run Client class.