We have a clustered JBoss deployment with an MDB which takes messages from a queue and forwards them to an external EIS. We have also configured a second MDB which pulls messages from the DLQ. This works fine as long as we configure the MDBs to use container-managed XA transactions but when we use Bean managed (local) transaction then JBoss messaging does not forward messages to the DLQ when the MDB throws an exception. Is it possible to configure a jBoss messaging (1.4) to forward messages to a DLQ when the MDB causing the exception has been configured to use local transactions?
No, this as per the JCA specification.
The reason is that the message being delivered is acknowledged outside the scope of the transaction. i.e. you are controlling the transaction within the MDB's on message. to do this you will need to use container managed transactions.