The entity bean ConfigurationEJB gives access to all
configuration parameters for the workflow package and provides
some utility methods that are (in the widest sense) associated with
the configuration of the package.
Method Summary
public void
ejbActivate() The activate method is called when the instance is activated from its
"passive" state.
public void ejbActivate() throws EJBException(Code)
The activate method is called when the instance is activated from its
"passive" state. The instance should acquire any resource that it has
released earlier in the ejbPassivate() method.
This method gets the primary key from container.
See Also: javax.ejb.EntityBean
Create an new instance. Not needed.
primary key of the bean throws: CreateException - Throws if the ProcessDirectoryBean can notbe create. throws: EJBException - Throws on any error except.
Find the ConfigurationBean.
Only one instance of this bean exists. The primary key is
allways the integer value 0.
Parameters: pk - The primary key of the bean The primary key. throws: FinderException - (ObjectNotFoundException)if no activity found.
This method loads additional configuration data from the
database. Note that most configuration data is read in
ConfigurationEJB.ejbActivateejbActivate() .
throws: EJBException - if an SQLException occurs.
ejbPassivate
public void ejbPassivate() throws EJBException(Code)
The passivate method is called before the instance enters the
"passive" state. The instance should release any resources that it
can re-acquire later in the ejbActivate() method.
See Also: javax.ejb.EntityBean
ejbPostCreate
public void ejbPostCreate() throws CreateException(Code)
Called after creating a new instance.
throws: CreateException - if the activity can not be create.
A container invokes this method before it ends the life of the session
object. This happens as a result of a client's invoking a remove
operation, or when a container decides to terminate the session object
after a timeout.
See Also: javax.ejb.EntityBean
Find the activity with the given key. This method really has no
logical association with the configuration. It must however be
provided by an entity bean. See
de.danet.an.workflow.ejbs.admin.ActivityFinderthe description of ActivityFinder for details.
Parameters: key - the activity's key. the activity found. throws: NoSuchActivityException - if key is invalid.
This Method reads the configuration-files and updates
the parameters.
throws: IOException - if an IO Error occurs.
setEntityContext
public void setEntityContext(EntityContext context) throws EJBException(Code)
Set the associated entity context. The container calls this method
after the instance creation.
See Also: javax.ejb.EntityBean Parameters: context - - A SessionContext interface for the instance throws: EJBException - on any error.
unsetEntityContext
public void unsetEntityContext() throws EJBException(Code)
Unset the associated entity context.
See Also: javax.ejb.EntityBean