This content has been marked as final. Show 1 reply
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.
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":
You can also change this per message.