1 Reply Latest reply on Feb 9, 2004 5:58 PM by Elias Ross

    DLQ Questions

    fredrich Newbie

      Hi gurus,

      I have few questions :

      1).How send the_message_sent_to_a_MDB_but_always_rollback(a.k.a Poison Message) to another USER DEFINED QUEUE OR TOPIC rather than DLQ queue? I would like to see the way you configure JBoss.

      2).DLQ Handler always react when a message is always re-sent many times(Poison Message), but it's not clear how many times it is re-sent. Can we specify the re-sent time? Say after 2 times re-sent, the message is sent to another queue or topic. How to configure it?

      Please help, I'm pretty new with MDB,JMS,JbossMQ.

      I use JDK 1.4.0-b92, MySQL 4.0.16,Windows 2000, and JBoss 3.2.2(of course)

      Thanks for your answers,
      Fredrich

        • 1. Re: DLQ Questions
          Elias Ross Master

           

          "Fredrich" wrote:
          Hi gurus,

          I have few questions :

          1).How send the_message_sent_to_a_MDB_but_always_rollback(a.k.a Poison Message) to another USER DEFINED QUEUE OR TOPIC rather than DLQ queue? I would like to see the way you configure JBoss.



          The file server/default/conf/standardjboss.xml allows to create a container configuration which will put the dead letters into a queue of your choice. You'll have to then apply this configuration to a particular MDB or set of them. Adrian discusses a way to create a "singleton" MDB, you can mirror what he did for configuring this.

          "Fredrich" wrote:

          2).DLQ Handler always react when a message is always re-sent many times(Poison Message), but it's not clear how many times it is re-sent. Can we specify the re-sent time? Say after 2 times re-sent, the message is sent to another queue or topic. How to configure it?


          It is set to 10. See "standardjboss.xml":
          10

          You can also change this per message.

          Message m;
          m.setIntProperty("JMS_JBOSS_REDELIVERY_LIMIT". 5)

          for example.