Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-630

EJB timers not persisted upon undeployment

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • EJB 3.0 RC9 - FD
    • None
    • None
    • None

    Description

      Since jboss 4.0.4.GA (see JBAS-1091) ejb timers can be persisted at undeployment time.

      However, this was a feature added to the org.jboss.ejb.txtimer.EJBTimerService API with a second removeTimerService method:

      /**

      • Remove the TimerService for a given containerId.
      • This should be used to remove the timer service and timers for
      • any type of container (session, entity, message) at the time of
      • undeployment.
        *
      • @param containerId The string identifier for a class of TimedObjects
      • @param keepState Flag indicating whether timer persistent state should be kept or removed
        */
        void removeTimerService(ObjectName containerId, boolean keepState) throws IllegalStateException;

      EJB3 uses the old removeTimerService() method that has the legacy behaviour of removing the timers at undeployment time.
      void removeTimerService(ObjectName containerId, Object pKey) throws IllegalStateException;

      So, call the new method instead. However, this will mean the EJB3 bundle will only run on JBoss4.0.4+

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-cdewolf Carlo de Wolf
              dandread1@redhat.com Dimitrios Andreadis
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: