javax.ejb
Annotation Type ApplicationException


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface ApplicationException

An exception annotated with this annotation will be an application exception and then thrown to the user.
And by default, no rollback is done before throwing the exception.

Since:
EJB 3.0 version.
Author:
Florent Benoit
See Also:
EJB 3.1 specification

Optional Element Summary
 boolean inherited
          Indicates whether the application exception designation should apply to subclasses of the annotated exception class.
 boolean rollback
          Rollback the transaction before the throws ?
 

rollback

public abstract boolean rollback
Rollback the transaction before the throws ?

Default:
false

inherited

public abstract boolean inherited
Indicates whether the application exception designation should apply to subclasses of the annotated exception class.

Since:
EJB 3.1 version.
Default:
true


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.