I would like some clarifications about the expected behaviour of JBossMQ when the delivery of a message fails.
For example a MDB tries to consume a message but an exception is thrown. What happens then ? Is the onMessage called again later ? It yes, is it configurable ?
My need is to have a retry of the onMessage method when it throws an exception (it tries to get an HTTP connection to another server and may fail).
I suppose I have to do this manually but how can I implement it ?
Because the onMessage() is called with a transaction a message delivery is undone when the onMessage() returns with an exception.