Skip to main content

[ejb-spec issues] [JIRA] Commented: (EJB_SPEC-1) Decoupling the @Schedule annotation from the EJB component model.

  • From: "mercnboy3 (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [ejb-spec issues] [JIRA] Commented: (EJB_SPEC-1) Decoupling the @Schedule annotation from the EJB component model.
  • Date: Fri, 18 Oct 2013 05:05:22 +0000 (UTC)
  • Auto-submitted: auto-generated


    [ 
https://java.net/jira/browse/EJB_SPEC-1?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=369749#action_369749
 ] 

mercnboy3 commented on EJB_SPEC-1:
----------------------------------

I second this. It does seem like a package change would be prudent for all 
this and other ejb decouplings.

> Decoupling the @Schedule annotation from the EJB component model.
> -----------------------------------------------------------------
>
>                 Key: EJB_SPEC-1
>                 URL: https://java.net/jira/browse/EJB_SPEC-1
>             Project: ejb-spec
>          Issue Type: New Feature
>    Affects Versions: 3.2
>            Reporter: reza_rahman
>            Assignee: marina vatkina
>             Fix For: Future version
>
>
> Currently the EJB @Schedule annotation can only be used with the EJB 
> component model. With the introduction of managed beans and CDI, there are 
> not many good technical reasons why the @Schedule annotation should not be 
> used in managed beans as well. In fact, many developers that are wary of 
> the EJB component model would opt to use this model instead. In addition, 
> decoupling EJB services such as @Schedule from the component model moves 
> towards removing one-off component models in Java EE in favor of unifying 
> around managed beans/CDI.
> We currently allow this capability in Resin. The code looks like this:
> @ApplicationScoped
> public class MyScheduledBean {
>   ...
>   @Schedule(...)
>   public void myScheduledTask() {
>     ...
>   }
>   ...
> }
> It should also be possible to use @Schedule in CDI stereotypes so that 
> developers can compose custom component types to meet the needs of their 
> individual applications (currently the @Schedule annotation can only be 
> applied to methods). The code for this could look like the following:
> @ApplicationScoped
> @Stereotype
> @Retention(RUNTIME)
> @Target(TYPE)
> @Schedule(...)
> public @interface MonthlyTask {}

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

        


[ejb-spec issues] [JIRA] Commented: (EJB_SPEC-1) Decoupling the @Schedule annotation from the EJB component model.

reza_rahman (JIRA) 10/06/2013

<Possible follow-up(s)>

[ejb-spec issues] [JIRA] Commented: (EJB_SPEC-1) Decoupling the @Schedule annotation from the EJB component model.

mercnboy3 (JIRA) 10/18/2013

[ejb-spec issues] [JIRA] Commented: (EJB_SPEC-1) Decoupling the @Schedule annotation from the EJB component model.

alrubinger (JIRA) 10/18/2013

[ejb-spec issues] [JIRA] Commented: (EJB_SPEC-1) Decoupling the @Schedule annotation from the EJB component model.

emailnbw (JIRA) 10/18/2013
 
 
Close
loading
Please Confirm
Close