Can you give more context here, the full exception call stack would be
helpful (please post a
pastebin.com link or something like that).
On 07/26/2013 06:10 AM, Gytis Trikleris wrote:
Hello,
I need to handle exception when either
TransactionAttributeType.MANDATORY or TransactionAttributeType.NEVER
requirement is not met. It is not a problem for MANDATORY, because
EJBTransactionRequiredException is thrown. However, general EJBException
exception is thrown if unexpected transaction was on the thread.
I wanted to ask what is the best way to detect that EJBException was
caused because of unnecessary transaction? Error code given by the
exception is JBAS014163, but I am not sure if it is safe to rely on
message codes...
Thanks,
Gytis
_______________________________________________
wildfly-dev mailing list
wildfly-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/wildfly-dev