This content has been marked as final.
Show 2 replies
-
1. Re: IP binding problem
jaikiran Feb 4, 2008 12:58 AM (in response to yongheo)Post the entire exception stacktrace. When does this exception occur? Does it happen when you are doing a lookup of the datasource and trying to obtain a connection from it? If yes, then have you specified the PROVIDER_URL as 128.173.23.123 to the InitialContext (since the services are longer binded to localhost):
Properties props = new Properties(); props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); props.put(Context.PROVIDER_URL,"jnp://128.173.23.123:1099"); Context ctx = new InitialContext(props); ctx.lookup("blahblahblah");
-
2. Re: IP binding problem
yongheo Feb 4, 2008 1:14 AM (in response to yongheo)Wow, jaikiran
Thanks alot. Yeah, you are right. I have to modify the Context part.
Quick reply solves the problem in short time.
Thank you very much.
Cheers,
Yong