1 Reply Latest reply on Aug 23, 2007 6:20 PM by clebert.suconic

    Restart Server & ConnectionFactories

    clebert.suconic

      Since when we started using UID as ObjectIDs instead of sequence integers, A downloaded CF (non Clustered) would be invalidated upon a server restart.

      Example:

      
       ConnectionFactory cf = context.lookup("/ConnectionFactory");
       killServer();
       restartServer();
       cf.createConnection();
      



      The above code would throw an IllegalStateException ("Cannot find object in dispatcher with id " + UID);


      The solution for this would be simple though... (unless there is no consensus on this):

      - instead of creating an UID for the ConnectionFactory, we use the uniqueName, so on this case the CF would still be valid even after a restart.

      I believe this would be useful for some use cases, where the client keeps trying to connect until the server is online again. (doing this through an Exception Listener or something similar).

      Any idea? Tim?