Skip to main content

[ejb-spec issues] [JIRA] Created: (EJB_SPEC-88) @ApplicationException to allow finer grain control

  • From: "dblevins (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [ejb-spec issues] [JIRA] Created: (EJB_SPEC-88) @ApplicationException to allow finer grain control
  • Date: Thu, 31 Jan 2013 04:51:53 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated

@ApplicationException to allow finer grain control
--------------------------------------------------

                 Key: EJB_SPEC-88
                 URL: http://java.net/jira/browse/EJB_SPEC-88
             Project: ejb-spec
          Issue Type: Improvement
            Reporter: dblevins
             Fix For: Future version


 it should be possible to specify how you would like a RuntimeException 
handled for a specific bean or method. Imagine @ApplicationException where 
modified like so:

{code}
@java.lang.annotation.Target({TYPE, METHOD})
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
public static @interface ApplicationException {
    Class value();

    boolean rollback() default false;
}
{code}

Now, we can do things a little more refined:

{code}
@LocalBean
public static class OrangeBean {

    @ApplicationException(RuntimeException.class)
    public void doSomething() {

    }

    public void doSomethingElse() {
        
    }
}
{code}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[ejb-spec issues] [JIRA] Created: (EJB_SPEC-88) @ApplicationException to allow finer grain control

dblevins (JIRA) 01/31/2013
 
 
Close
loading
Please Confirm
Close