com.opensymphony.workflow.ejb
Class EJBWorkflowContext
java.lang.Object
com.opensymphony.workflow.ejb.EJBWorkflowContext
- All Implemented Interfaces:
- WorkflowContext, Serializable
public class EJBWorkflowContext
- extends Object
- implements WorkflowContext
EJB specific workflow context.
The default implementation is to get the caller principal from the
container's SessionContext. If different behaviour is desired, this
class can be subclassed with whatever custom logic in place to look
up the caller. This can be done by specifying a workflowContext
property in the ejb persistence store's properties in osworkflow.xml.
The value of this properly should be the classname of the WorkflowContext
to use.
- Version:
- $Revision: 1.6 $
- Author:
- Hani Suleiman
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EJBWorkflowContext
public EJBWorkflowContext()
getCaller
public String getCaller()
- Specified by:
getCaller in interface WorkflowContext
- Returns:
- the workflow caller.
setRollbackOnly
public void setRollbackOnly()
- Description copied from interface:
WorkflowContext
- Sets the current transaction to be rolled back.
- Specified by:
setRollbackOnly in interface WorkflowContext
setSessionContext
public void setSessionContext(javax.ejb.SessionContext context)
getSessionContext
public javax.ejb.SessionContext getSessionContext()