Hi everybody
I have developed a web service as a sessionbean an a client tah connect to this
service. Everything works fine in a localhost. Now I want the client to be in a
different computer, How can I configure this?
The code is as follows :
-------- Service --------
public class Service implements SessionBean{
....
}
-------- Client -----------
public class Client{
.....
Context ref=getInitialcontex();
Object ref=context.lookup("Service");
Object ref = contex
private getInitialContex() throws NaminException{
Hastable environment=new Hashtable();
environment.put(Context.INITAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
environment.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.inteerfaces");
environment.put(Context.PROVIDER_URL,"jnp://localhost:1099");
}
...
}
Perhaps, do I have to change localhost:1099 in the PROVIDER_URL for the IP
where JBOSS server is installed. And, of course, open port 1099? Do I need
somethig else?
Thanks for the help
Pepe
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879730#3879730
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879730
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user