[jboss-user] [Beginners Corner] - Re: Cannot connect to port 1099

bkaremba do-not-reply at jboss.com
Mon Aug 28 13:24:57 EDT 2006


Hi

Thanks for the quick response wdfink!

RE: But telnet does not understand. 

Does this mean that I should not be able to telnet port 1099 on the localhost?

The following is the method I use in the application to get the initialcontext, what changes need to be made to this code so that I can connect to the naming server:

public static Context getInitialContext() throws NamingException { 
Hashtable<String,String> props = new Hashtable<String,String>(); 
props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); 
props.put(Context.PROVIDER_URL, "jnp://localhost:1099"); 
props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); 
return = new InitialContext(props); 
} 

Regards

Brian

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

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



More information about the jboss-user mailing list