2 Replies Latest reply on Sep 22, 2003 9:07 AM by Adrian Brock

    Naming Lookup Fails after JBOSS Restart

    nconway Newbie

      I am doing some resilliance testing and I am having problems with naming lookups after having done a shutdown and restart of JBOSS.

      Is there a way to do a proper clean up if a JBOSS failure is detected?

      With JBOSS 3.0.4, the lookup simply returns null. Whereas with JBOSS 3.2.0 the lookup causes the following exception to occur.

      "javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: xxx.xxx.xxx.xxx; nested exception is:
      java.net.ConnectException: Connection refused: connect]"

      It should be noted that threads created when the initial lookup is done, prior to shutting JBOSS down, are not cleaned up when JBOSS is shutdown.

      The Code to reproduce the problem is attached

      Any help greatly appreciated.