JMS recovery in jboss EAP 7.2

Latest response

Hi,
When jboss is connected to Remote ActiveMQ via Resource Adaptor , and suddenly when MQ get stopped , the messages which was in 2nd attempt due to NPE at MDB end will not be consider again or will not re-try to push it on MQ (when MQ gets up after some time.)

Note :
Messages sent are non-persistance.
NPE explictly thrown exception to test recovery.

Responses

If MDB throws an exception, the JCA layer destroys that MDB and creates a new one in it place. Since the broker is down there is no message to be delivered but the JCA will try to reestablish connection with the broker depending on the RA configuration. If you message is non persistent it will be lost since it won't survive the broker outtage.