Look at hornetq-configuration.xml
There's the address settings using wildcard.
You can either add this:
<!--override the max-delivery-attempts and dead letter address for the example queue-->
Or you can add these two lines to the # matching:
Can the bug fix be integrated into JBoss 5.1.0 or is it necessary to switch to JBoss 6.1.0 for this fix ?
JBoss AS 5.1.0 doesn't use HornetQ. So that bug doesn't apply for JBoss AS 5.1.0.
Thanks for your support.
I solved the problem by replacing the message journal files by empty ones... This is a quick fix intended for testing use only, that I'll use until I switch to JBoss 6.1.