2 Replies Latest reply on Oct 9, 2007 4:57 PM by brown078

    Messages get stuck in queue ... as they should.

    brown078

      Hi All,
      We have a messaging application that basically sorts out our order types in to messaging queues for processing. This application works great for this , its truly amazing.

      As we learn more about it, it's doing more then we expected from it. The scenario is as follows:

      Our backend ERP goes down for backups at 12am - 2am pst. When this happens, we obviously lose the ability to complete the order. This causes the message queue(s) logic to throw an exception and the message just stays in the offending message queue.

      The simple question is: how do I replay the messages in the queue when I know this back up is complete?

      Thanks!

        • 1. Re: Messages get stuck in queue ... as they should.
          timfox

          If you catch your exception and rollback your transaction, then the message should automatically get redelivered.

          (This should happen automatically for your in a transacted MDB).

          To prevent roll backs happen in too quick a succession you can specify a redelivery delay (see userguide for more info).

          • 2. Re: Messages get stuck in queue ... as they should.
            brown078

            Thanks Tim,
            We were working through those today in the destinations-service.xml. Hopefully that will alleviate those issues.

            We still have messages stuck in the queue that were there before the change. Is there a way to replay these messages without restarting JBoss?

            Thanks again.