0 Replies Latest reply on Mar 8, 2002 10:40 AM by buck

    application exception not passed to client

    buck Newbie

      hi folks,

      i´m using jboss 3.0.0alpha and i just encountered a bad problem:

      i want to throw an application exception in a CMP entity.
      this exception is a custom one and it extends java.lang.Exception (as it should).

      the method is declared to throw the exception and it´s called by a session bean via local interface.

      the entities transaction is "Required" and before throwing my application exception i´m calling setRollbackOnly().
      according to the EJB 2.0 specs (chapter 18.3.1, table 15) the container´s action should be to re-throw my custom exception, but instead javax.ejb.TransactionRolledbackLocalException is recieved by the caller.
      this is the default behaviour if the entities exception is not an application exception but any other (runtime and so on).

      i´m quite sure that my code is free of typos :-) and all code on my side is following the specs.

      does anyone of you have any idea?

      if you need more information or code fragments then jusr reply and i will submit them.

      thanks in advance,

      buck