3 Replies Latest reply on Jul 10, 2003 6:35 PM by Nathan W. Phelps

    Queue Connection management

    Roger Tan Newbie

      Hi, I am a new bie to JMS so please bear with me.
      I am currently working to abstract the lower level details of JMS. And I am thinking of the following :
      1. Using only one QueueConnection object per application. Is this a good idea ? ( seems to me that some books recommend this approach ). When clients want to send a message, they will work only with a Session.

      A question :
      - Is is ok if I do not close the connection upon shutdown ? I am thinking of using a static initializer to open the connection, but I am not quite sure whether to use a finalizer to shut down the connection. Any suggestions ??? I am trying not to use an MBean to manage the lifecycle.