users@glassfish.java.net

Re: How to explicitly handle EJB3 exceptions?

From: <glassfish_at_javadesktop.org>
Date: Fri, 16 May 2008 08:41:09 PDT

Hi Reiner,

You need to decouple the createOrder transaction from the MDB's transaction. The easiest way to do that is to assign a tx attribute of REQUIRES_NEW to createOrder. You can then catch an EJBException in the MDB, send your reply, and return normally from onMessage.
[Message sent by forum member 'ksak' (ksak)]

http://forums.java.net/jive/thread.jspa?messageID=274864