2 Replies Latest reply on Apr 18, 2002 1:29 PM by cpaul_it

    How to remove messages from queue once consumed?

    sanepid

      Hello,
      I am new to JMS, therefore please pardon my lack of experience. I encountered the following problem: from a client, I send text messages to a JMS queue. From there, they are consumed by a message driven bean. So far, everything is fine, but when I restart the Jboss, all the messages are sent again to my MDB. How could I indicate to the JMS engine to remove messages once consumed. I suppose there must be a setting for that queue.
      I use JBoss 3.0.
      Thanks a lot

        • 1. Re: How to remove messages from queue once consumed?
          ioparra

          I had a similar problem. Is your persistence manager rollinglogged by any chance? I found that changing it to file did the trick.
          Good luck.

          • 2. Re: How to remove messages from queue once consumed?
            cpaul_it

            I had this same problem. Mine started when JBoss 2.4.4 didn't start properly because of another unrelated configuration problem. After that happened, every time I would start JBoss, it would send the same old message to my MDB again.

            My solution was to delete the message queue file (for the queue that was causing me problems). This is found in the[JBoss-Install]\jboss\db\jbossmq directory. I assumed that JBoss would recreate the file when needed, which it did, and it solved my problem.