2 Replies Latest reply on Nov 23, 2004 4:46 PM by flindet

    Persistent messages not being deleted

    flindet Newbie


      About a week ago, our persistent messages for a prototype we're developing stopped working properly. Messages are written to the database, but are never deleted. An MDB receives the message and processes it properly, but the message is never deleted from the database.

      We're using JBoss 4.0. Oracle is used to store the persistent messages. I've tried using AUTO_ACKNOWLEDGE and CLIENT_ACKNOWLEDGE, both with the same results.

      I've been trying to determine what has changed in my environment for this last week, but I have been unable to find it. Does anyone have any ideas that I might try? I'm stumped!

      Thank you.

        • 1. Re: Persistent messages not being deleted
          flindet Newbie

          Here is my ejb-jar.xml:

          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

          • 2. Re: Persistent messages not being deleted
            flindet Newbie


            Sorry, I have resolved my problem. The problem was that another developer and I were usingdifferent subscription-id's when testing our MDB. This created two subscriptions in our JMS_SUBSCRIPTIONS table, causing the Topic to attempt delivery to both subscriptions. Because we only ran one MDB with one of the subscription-id's at any given time, messages would stack in the database due to the lack of a listener for one of the subscription-id's.

            This is a non-issue. The topic did exactly what it was supposed to do. We were just confused because we didn't expect two subscriptions. Sorry!