java - Remote EJB3 calling from web app. working in localhost but not in network -


hi new ejb3 programming. developed sample application using ejb3 stateless session bean. calling of remote object client using localhost working fine. same application when trying call though network can't able remote object. made required changes in client program call remote ejb3 object. ejb3 application deployed in glassfish v3 server. client program jndi props:

for localhost

java.naming.factory.initial = com.sun.enterprise.naming.serialinitcontextfactory java.naming.factory.url.pkgs = com.sun.enterprise.naming java.naming.factory.state = com.sun.corba.ee.impl.presentation.rmi.jndistatefactoryimpl org.omg.corba.orbinitialhost = localhost org.omg.corba.orbinitialport = 3700 

for remotehost

java.naming.factory.initial = com.sun.enterprise.naming.serialinitcontextfactory java.naming.factory.url.pkgs = com.sun.enterprise.naming java.naming.factory.state = com.sun.corba.ee.impl.presentation.rmi.jndistatefactoryimpl org.omg.corba.orbinitialhost = remote ip address org.omg.corba.orbinitialport = remote orb listener port no 

lookup operation

initialcontext ctx = new initialcontext(props); testejbremote testejb = (testejbremote) ctx.lookup("java:global/test-ejb/testejb!stateless.testejbremote"); 

i don't know made mistake? changes have make in ejb3 application make working in remote host also? please me...sorry bad english

you can read link if try call ejb outside container

http://glassfish.java.net/javaee5/ejb/ejb_faq.html#nonjavaeewebcontainerremoteejb


Comments