com.opensymphony.workflow.util.ejb.remote
Class RemoteEJBRegister

java.lang.Object
  extended by com.opensymphony.workflow.util.ejb.remote.RemoteEJBRegister
All Implemented Interfaces:
Register

public class RemoteEJBRegister
extends Object
implements Register

Register a remote EJB that implements RegisterRemote. A required argument for this register is ejb.location, which specifies the JNDI location to look up the remote EJB at.

Note that by default, the EJB will be looked up from a default InitialContext. It is however possible to specify an environment for the initial context by specifying the standard JNDI keys as arguments.

For example, specifying an argument with a name of java.naming.security.principal and a value of testuser will result in an InitialContext being created with the user specified as 'testuser'.

Version:
$Revision: 1.4 $
Author:
$Author: hani $

Constructor Summary
RemoteEJBRegister()
           
 
Method Summary
 Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args, com.opensymphony.module.propertyset.PropertySet ps)
          Returns the object to bind to the variable map for this workflow instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteEJBRegister

public RemoteEJBRegister()
Method Detail

registerVariable

public Object registerVariable(WorkflowContext context,
                               WorkflowEntry entry,
                               Map args,
                               com.opensymphony.module.propertyset.PropertySet ps)
                        throws WorkflowException
Description copied from interface: Register
Returns the object to bind to the variable map for this workflow instance.

Specified by:
registerVariable in interface Register
Parameters:
context - The current workflow context
entry - The workflow entry. Note that this might be null, for example in a pre function before the workflow has been initialised
args - Map of arguments as set in the workflow descriptor
Returns:
the object to bind to the variable map for this workflow instance
Throws:
WorkflowException

OpenSymphony Workflow Project Page