-
1. Re: Cannot connect to port 1099
wdfink Aug 28, 2006 11:10 AM (in response to bkaremba)This looks OK.
Your JBoss is up and running and will give a RMI connection.
But telnet does not understand.
IMO that is not the problem ;-( -
2. Re: Cannot connect to port 1099
bkaremba Aug 28, 2006 1:24 PM (in response to bkaremba)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 -
3. Re: Cannot connect to port 1099
wdfink Aug 29, 2006 3:02 AM (in response to bkaremba)Hi Brian,
I meant that the answer from JBoss in your telnet is correct.
JBoss will give a Remotestub, but telnet dont work with it.
Your connection should work without the URL_PKG_PREFIXES this only restricts the packages.
regards
Wolf