org.jbpm.ejb.impl
Class TimerEntityBean

java.lang.Object
  extended by org.jbpm.ejb.impl.TimerEntityBean
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EJBLocalObject, javax.ejb.EnterpriseBean, javax.ejb.EntityBean, javax.ejb.TimedObject, LocalTimerEntity

public class TimerEntityBean
extends java.lang.Object
implements javax.ejb.EntityBean, LocalTimerEntity, javax.ejb.TimedObject

A stateless session bean implementation of the CommandService.

Author:
Jim Rigsbee, Tom Baeyens
See Also:
Serialized Form

Constructor Summary
TimerEntityBean()
           
 
Method Summary
 void cancel()
           
 void createTimer(java.lang.String duration)
           
 void ejbActivate()
           
 void ejbCreate()
          creates a command service that will be used to execute the commands that are passed in the execute method.
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 void ejbStore()
           
 void ejbTimeout(javax.ejb.Timer timer)
           
 javax.ejb.EJBLocalHome getEJBLocalHome()
           
 java.lang.Object getPrimaryKey()
           
 boolean isIdentical(javax.ejb.EJBLocalObject elo)
           
 void remove()
           
 void schedule()
           
 void setEntityContext(javax.ejb.EntityContext entityContext)
           
 void unsetEntityContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerEntityBean

public TimerEntityBean()
Method Detail

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
creates a command service that will be used to execute the commands that are passed in the execute method. The command service will be build by creating a jbpm configuration. In case the environment key JbpmCfgResource is specified for this bean, that value will be used to resolve the jbpm configuration file as a resource. If that key is not configured, the default jbpm configuration file will be used (jbpm.cfg.xml).

Throws:
javax.ejb.CreateException

schedule

public void schedule()
Specified by:
schedule in interface LocalTimerEntity

createTimer

public void createTimer(java.lang.String duration)

cancel

public void cancel()
Specified by:
cancel in interface LocalTimerEntity

ejbTimeout

public void ejbTimeout(javax.ejb.Timer timer)
Specified by:
ejbTimeout in interface javax.ejb.TimedObject

getEJBLocalHome

public javax.ejb.EJBLocalHome getEJBLocalHome()
                                       throws javax.ejb.EJBException
Specified by:
getEJBLocalHome in interface javax.ejb.EJBLocalObject
Throws:
javax.ejb.EJBException

getPrimaryKey

public java.lang.Object getPrimaryKey()
                               throws javax.ejb.EJBException
Specified by:
getPrimaryKey in interface javax.ejb.EJBLocalObject
Throws:
javax.ejb.EJBException

isIdentical

public boolean isIdentical(javax.ejb.EJBLocalObject elo)
                    throws javax.ejb.EJBException
Specified by:
isIdentical in interface javax.ejb.EJBLocalObject
Throws:
javax.ejb.EJBException

setEntityContext

public void setEntityContext(javax.ejb.EntityContext entityContext)
Specified by:
setEntityContext in interface javax.ejb.EntityBean

unsetEntityContext

public void unsetEntityContext()
                        throws javax.ejb.EJBException,
                               java.rmi.RemoteException
Specified by:
unsetEntityContext in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

remove

public void remove()
            throws javax.ejb.RemoveException,
                   javax.ejb.EJBException
Specified by:
remove in interface javax.ejb.EJBLocalObject
Throws:
javax.ejb.RemoveException
javax.ejb.EJBException

ejbStore

public void ejbStore()
              throws javax.ejb.EJBException,
                     java.rmi.RemoteException
Specified by:
ejbStore in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

ejbLoad

public void ejbLoad()
             throws javax.ejb.EJBException,
                    java.rmi.RemoteException
Specified by:
ejbLoad in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

ejbActivate

public void ejbActivate()
                 throws javax.ejb.EJBException,
                        java.rmi.RemoteException
Specified by:
ejbActivate in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

ejbPassivate

public void ejbPassivate()
                  throws javax.ejb.EJBException,
                         java.rmi.RemoteException
Specified by:
ejbPassivate in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

ejbRemove

public void ejbRemove()
Specified by:
ejbRemove in interface javax.ejb.EntityBean