Hi all,
There is an MDB. It calls a facade method on some SLSB and in case exception happens it catches it and sends a JMS Message (we're using standalone ActiveMQ).
The pesky problem is that the message is not sent because the current transaction is in the "rolling back" state. It seems I need to use a separate transaction for sending message.
I tried using
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) public void sendStatusMessage(String messageText, Destination dest) throws JMSException {