0 Replies Latest reply on Jul 14, 2005 3:24 AM by Dave Reynolds

    Stateful session bean exceptions

    Dave Reynolds Newbie


      Is it possible for a SFSB to throw exceptions that extend java.lang.Exception?

      We have an application that uses this mechanism to narrow down issues between the SFSB and the client. For instance:

      Our Exception is defined as:

      public class DuplicateEntityException extends Exception
       public DuplicateEntityException(String reason)

      This will be thrown if the session bean detects that at EntityManager.persist has failed due to a unique constaint being broken.

      This method of exception handling worked in Preview-4 but nolonger functions in Beta-1 - our client now receives a javax.ejb.EJBException instead of the exception that has been thrown.

      Any help would be appreciated!