| java.lang.Object de.danet.an.workflow.tools.timing.TimerHandlerEJB
TimerHandlerEJB | public class TimerHandlerEJB implements SessionBean,TimedObject(Code) | | This EJB provides a directory for simple applications. Applications
are considered simple in this context if their associated
persistent state information can efficiently be represented (and
stored) using a single serializable object.
This directory maps a unique id to the activity unique key
information of the executing activity and an associated state (and
vice versa). Optionally, the assignment time and the assigned
resource may be saved in this directory as well.
author: Michael Lipp version: $Revision: 1.14 $ |
Constructor Summary | |
public | TimerHandlerEJB() Creates an instance of TimerHandlerEJB
with all attributes initialized to default values. |
TimerHandlerEJB | public TimerHandlerEJB()(Code) | | Creates an instance of TimerHandlerEJB
with all attributes initialized to default values.
|
createTimer | public Object createTimer(long applId, Date waitUntil)(Code) | | Create the timer for a waiting application.
Parameters: applId - the application id Parameters: waitUntil - the time to wait for the timer |
createTimer | public void createTimer(ActivityUniqueKey auk, Date waitUntil)(Code) | | Create a timer for a an activity
Parameters: auk - the activity's unique keythe result Parameters: waitUntil - the time to wait for |
ejbActivate | public void ejbActivate() throws EJBException(Code) | | Not called for stateless session beans.
See Also: javax.ejb.SessionBean |
ejbCreate | public void ejbCreate() throws CreateException(Code) | | Create a new EJB.
throws: CreateException - if creation fails |
ejbPassivate | public void ejbPassivate() throws EJBException(Code) | | Not called for stateless session beans.
See Also: javax.ejb.SessionBean |
ejbRemove | public void ejbRemove()(Code) | | Remove this EJB.
|
ejbTimeout | public void ejbTimeout(Timer timer)(Code) | | Handle the timeout of a timer.
Parameters: timer - the timer that has expired. |
removeTimer | public void removeTimer(Object timer)(Code) | | Remove a previously created timer.
Parameters: timer - the timer |
setSessionContext | public void setSessionContext(SessionContext context)(Code) | | Save the session context asigned by the container.
Parameters: context - the context |
|
|