[jboss-jira] [JBoss JIRA] Closed: (EJBTHREE-630) EJB timers not persisted upon undeployment
Carlo de Wolf (JIRA)
jira-events at lists.jboss.org
Wed Mar 7 02:10:27 EST 2007
[ http://jira.jboss.com/jira/browse/EJBTHREE-630?page=all ]
Carlo de Wolf closed EJBTHREE-630.
----------------------------------
> EJB timers not persisted upon undeployment
> ------------------------------------------
>
> Key: EJBTHREE-630
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-630
> Project: EJB 3.0
> Issue Type: Task
> Reporter: Dimitris Andreadis
> Assigned To: Carlo de Wolf
> Fix For: EJB 3.0 RC9 - FD
>
>
> 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+
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list