0 Replies Latest reply on Feb 27, 2002 9:24 PM by Tom Innes

    EJBException and EJBStore Problem

    Tom Innes Newbie

      Inside the SQLException catch block of an EJBstore we are throwing an EJBException with an embedded userException on an EntityBean. On the SessionBean that calls the Entity bean we catch a RemoteException after the call to the set.

      We simulated an error on the Store by changing the SQL to a table name that does not exist. When executed,
      This catch is bypassed on the Session Bean set, and an Exception makes its way back to the client.

      The Exception is java.lang.reflect.UndeclaredThrowableException: javax.transaction.RollbackException: Unable to commit,

      Can anybody help us so that our session bean can catch an exception for methods that cause an ejbStore to fire?

      Tom