This content has been marked as final.
Show 1 reply
-
1. Re: DLQ Questions
genman Feb 9, 2004 5:58 PM (in response to fredrich)"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.