0 Replies Latest reply on May 7, 2006 10:26 PM by Chris Bitmead

    Changing servers while running

    Chris Bitmead Newbie


      I have an app that needs to change the server it is talking to mid way through running. So the program disconnects, changes the java.naming.provider.url System property to something else and creates a new InitialContext(). Trouble is, it seems to keep talking to the old server. So I thought instead I'll create a Hashtable of variables and pass that to the InitialContext constructor that takes a Hashtable. That doesn't seem to help either.

      Any suggestions?