users@glassfish.java.net

Re: How to recreate session instead of NoSuchEJBException

From: <glassfish_at_javadesktop.org>
Date: Tue, 29 May 2007 09:07:38 PDT

Hi Kevin,

As you guessed the instance deletion behavior you're seeing is required by the spec. However,
the intent is that this only happens when a system exception is thrown. In general, EJBs
should only throw runtime exceptions when an unrecoverable error has happened. You might
want to look into defining some application exceptions that your EJBs can throw for conditions
that are not considered fatal.

 --ken
[Message sent by forum member 'ksak' (ksak)]

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