Skip to main content

[ejb-spec issues] [JIRA] Issue Comment Edited: (EJB_SPEC-2) Decoupling the TimerService API from the EJB component model

  • From: "mercnboy3 (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [ejb-spec issues] [JIRA] Issue Comment Edited: (EJB_SPEC-2) Decoupling the TimerService API from the EJB component model
  • Date: Fri, 18 Oct 2013 05:12:23 +0000 (UTC)
  • Auto-submitted: auto-generated


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

mercnboy3 edited comment on EJB_SPEC-2 at 10/18/13 5:12 AM:
------------------------------------------------------------

+1 as in EJB_SPEC-2 it seems like a package change would be in order.

      was (Author: mercnboy3):
    +1 as in #EJB_SPEC-2 it seems like a package change would be in order.
  
> Decoupling the TimerService API from the EJB component model
> ------------------------------------------------------------
>
>                 Key: EJB_SPEC-2
>                 URL: https://java.net/jira/browse/EJB_SPEC-2
>             Project: ejb-spec
>          Issue Type: New Feature
>    Affects Versions: 3.2
>            Reporter: reza_rahman
>            Assignee: marina vatkina
>             Fix For: Future version
>
>
> Currently the EJB TimerService interface 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 TimerService interface 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 the TimerService interface 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 {
>   ...
>   @Inject private TimerService timerService;
>   ...
>   public void myScheduleCreator() {
>     ...
>     Timer timer = timerService.createTimer(...);
>     ...
>   }
>   ...
>   @Timeout
>   public void handleTimeout(Timer timer) {
>     ...
>   }
>   ...
> }

-- 
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] Issue Comment Edited: (EJB_SPEC-2) Decoupling the TimerService API from the EJB component model

mercnboy3 (JIRA) 10/18/2013

<Possible follow-up(s)>

[ejb-spec issues] [JIRA] Issue Comment Edited: (EJB_SPEC-2) Decoupling the TimerService API from the EJB component model

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