glassfish
  1. glassfish
  2. GLASSFISH-18882

EJB 3.2 Add support for TimerService.getAllTimers API

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.0_b68_EE7MS3
    • Component/s: ejb_container
    • Labels:
      None

      Description

      Add support for EJBTimerService.getAllTimers as follows:

      The getAllTimers method returns all active timers associated with the beans in the same module in which the caller bean is packaged. These include both the programmatically-created timers and the automatically-created timers. Timers returned by this method can be cancelled only by the bean that is associated with the corresponding timer.

        Activity

        Hide
        marina vatkina added a comment -

        EJBTimerServiceWrapper.getAllTimers implements the interface, but it is an empty placeholder

        Show
        marina vatkina added a comment - EJBTimerServiceWrapper.getAllTimers implements the interface, but it is an empty placeholder
        Hide
        amy.yang added a comment -

        Project: glassfish
        Repository: svn
        Revision: 56905
        Author: amy.yang
        Date: 2012-11-08 05:20:28 UTC
        Link:

        Log Message:
        ------------
        JIRA-18882: add upport for TimerService.getAllTimers API

        Revisions:
        ----------
        56905

        Modified Paths:
        ---------------
        trunk/main/appserver/ejb/ejb-container/src/main/java/org/glassfish/ejb/startup/EjbDeployer.java
        trunk/main/appserver/ejb/ejb-container/src/main/java/com/sun/ejb/containers/EJBTimerServiceWrapper.java
        trunk/main/appserver/ejb/ejb-full-container/src/main/java/org/glassfish/ejb/persistent/timer/TimerState.java
        trunk/main/appserver/ejb/ejb-container/src/main/java/org/glassfish/ejb/deployment/descriptor/EjbBundleDescriptorImpl.java
        trunk/main/appserver/ejb/ejb-full-container/src/main/java/org/glassfish/ejb/persistent/timer/TimerLocal.java
        trunk/main/appserver/ejb/ejb-container/src/main/java/com/sun/ejb/containers/EJBTimerService.java
        trunk/main/appserver/ejb/ejb-full-container/src/main/java/org/glassfish/ejb/persistent/timer/TimerBean.java
        trunk/main/appserver/ejb/ejb-full-container/src/main/java/org/glassfish/ejb/persistent/timer/PersistentEJBTimerService.java
        trunk/main/appserver/ejb/ejb-container/src/main/java/org/glassfish/ejb/deployment/descriptor/EjbEntityDescriptor.java

        Show
        amy.yang added a comment - Project: glassfish Repository: svn Revision: 56905 Author: amy.yang Date: 2012-11-08 05:20:28 UTC Link: Log Message: ------------ JIRA-18882: add upport for TimerService.getAllTimers API Revisions: ---------- 56905 Modified Paths: --------------- trunk/main/appserver/ejb/ejb-container/src/main/java/org/glassfish/ejb/startup/EjbDeployer.java trunk/main/appserver/ejb/ejb-container/src/main/java/com/sun/ejb/containers/EJBTimerServiceWrapper.java trunk/main/appserver/ejb/ejb-full-container/src/main/java/org/glassfish/ejb/persistent/timer/TimerState.java trunk/main/appserver/ejb/ejb-container/src/main/java/org/glassfish/ejb/deployment/descriptor/EjbBundleDescriptorImpl.java trunk/main/appserver/ejb/ejb-full-container/src/main/java/org/glassfish/ejb/persistent/timer/TimerLocal.java trunk/main/appserver/ejb/ejb-container/src/main/java/com/sun/ejb/containers/EJBTimerService.java trunk/main/appserver/ejb/ejb-full-container/src/main/java/org/glassfish/ejb/persistent/timer/TimerBean.java trunk/main/appserver/ejb/ejb-full-container/src/main/java/org/glassfish/ejb/persistent/timer/PersistentEJBTimerService.java trunk/main/appserver/ejb/ejb-container/src/main/java/org/glassfish/ejb/deployment/descriptor/EjbEntityDescriptor.java
        Hide
        amy.yang added a comment -

        Project: glassfish
        Repository: svn
        Revision: 57093
        Author: amy.yang
        Date: 2012-11-23 02:12:38 UTC
        Link:

        Log Message:
        ------------
        JIRA18882: allow Timer.cancel() only for the owner EJB

        Revisions:
        ----------
        57093

        Modified Paths:
        ---------------
        trunk/main/appserver/ejb/ejb-full-container/src/main/java/org/glassfish/ejb/persistent/timer/PersistentEJBTimerService.java
        trunk/main/appserver/ejb/ejb-container/src/main/java/com/sun/ejb/containers/EJBTimerService.java
        trunk/main/appserver/ejb/ejb-container/src/main/java/com/sun/ejb/containers/TimerWrapper.java

        Show
        amy.yang added a comment - Project: glassfish Repository: svn Revision: 57093 Author: amy.yang Date: 2012-11-23 02:12:38 UTC Link: Log Message: ------------ JIRA18882: allow Timer.cancel() only for the owner EJB Revisions: ---------- 57093 Modified Paths: --------------- trunk/main/appserver/ejb/ejb-full-container/src/main/java/org/glassfish/ejb/persistent/timer/PersistentEJBTimerService.java trunk/main/appserver/ejb/ejb-container/src/main/java/com/sun/ejb/containers/EJBTimerService.java trunk/main/appserver/ejb/ejb-container/src/main/java/com/sun/ejb/containers/TimerWrapper.java
        Hide
        amy.yang added a comment -

        the test cases are also checked in:
        Project: glassfish
        Repository: svn
        Revision: 56910, 56985, 57094

        Show
        amy.yang added a comment - the test cases are also checked in: Project: glassfish Repository: svn Revision: 56910, 56985, 57094
        Hide
        amy.yang added a comment - - edited

        Hudson reported errors for cancel-check. reverting 57093 & 57094

        57094 is reverted by 57096
        57093 is reverted by 57097

        Show
        amy.yang added a comment - - edited Hudson reported errors for cancel-check. reverting 57093 & 57094 57094 is reverted by 57096 57093 is reverted by 57097
        Hide
        amy.yang added a comment -

        After disussion, the cancel-check of the owner of the timer will be removed.
        so this feature has been finished.
        Closing this issue.

        the cancel-check can be brougt back via 57093. corresponding test case is 57094.

        Show
        amy.yang added a comment - After disussion, the cancel-check of the owner of the timer will be removed. so this feature has been finished. Closing this issue. the cancel-check can be brougt back via 57093. corresponding test case is 57094.

          People

          • Assignee:
            amy.yang
            Reporter:
            marina vatkina
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: