2 Replies Latest reply on Oct 27, 2004 11:24 AM by Adam Rice

    Do I have to close QueueSession

    northwhite Newbie

      From Sun J2EE API, it's seemingly saying that you do not need to close a QueueSession if you are closing a QueueConnection.

      Is this true in JBoss? Seems someone is saying I have to close those QueueSession before closing QueueConnection.

      BTW, I am investigating two issues related to JMS in JBoss 3.2.1:

      1) OutOfMemoryException under heavy (message) load
      2) EOFException when createQueueConnection

      Thanks in advance.

        • 1. Re: Do I have to close QueueSession
          Adrian Brock Master

          That is a bug in the JMS adapter which I will be fixing for 3.2.4
          If you don't close the session, you get a "Do your own housekeeping" warning
          and jboss closes it for you.

          Regards,
          Adrian

          • 2. Re: Do I have to close QueueSession
            Adam Rice Newbie

            Hi Adrian,

            I was experiencing something similar, where I was getting a SocketException after pumping a bunch of messages onto a queue. I added code to close the session and then close the connection, but I still see a single EOFException when the client shuts down. Any thoughts?

            Thanks,
            Adam Rice

            "adrian@jboss.org" wrote:
            That is a bug in the JMS adapter which I will be fixing for 3.2.4
            If you don't close the session, you get a "Do your own housekeeping" warning
            and jboss closes it for you.

            Regards,
            Adrian