[jboss-user] [Messaging, JMS & JBossMQ] - Re: How to access JBOSS by providing IP address

priyarao234 do-not-reply at jboss.com
Wed May 7 10:03:42 EDT 2008


Hi Kiran,,.. dats fine like that i can access my server with ip address...... But in my program how can i configured that JBOSS configuration..... if the Server is running in my machine i can provide the following code and it works fine....
Hashtable env = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY,
		"org.jnp.interfaces.NamingContextFactory");
env.put(Context.URL_PKG_PREFIXES,
		"=org.jboss.naming:org.jnp.interfaces");
env.put(Context.PROVIDER_URL, "jnp://localhost:1099");

....................


But if i'm using the server which is running in another machine then how can i configure that server.

if i tried like below it shows an error....
....
....
env.put(Context.PROVIDER_URL, "jnp://192.116.23.25:1099");


So plz tell me or post the code and tell me what configuraion (if required) i have to make in the server machine.....




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149133#4149133

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149133



More information about the jboss-user mailing list