This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
client application connecting to local server after failing to connect to remote server
posted 7 years ago
I am seeing a strange problem in getting reference of initial context. client application supposed to make remote method (sync) call to remote server. it is working fine normally. but when connection is lost between remote server and client, it is failing to get initial context (which is fine as it is expected). But after a while when connection is re-established client application is connecting to local server instead of remote server (means it is getting reference of wrong initial context). btw, local and remote server both have same port number.
I am wondering if anyone has seen this problem. Here I am pasting the code that gets initial context.
Properties props = new Properties();
jndiContext = new InitialContext(props);