org.jbpm.ejb.impl
Class CommandServiceBean
java.lang.Object
org.jbpm.ejb.impl.CommandServiceBean
- All Implemented Interfaces:
- java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean, org.jbpm.command.CommandService
public class CommandServiceBean
- extends java.lang.Object
- implements javax.ejb.SessionBean, org.jbpm.command.CommandService
Stateless session bean that executes commands by
calling their execute method on
a separate jBPM context.
Environment
The environment entries and resources available for customization are
summarized in the table below.
| Name |
Type |
Description |
JbpmCfgResource |
Environment Entry |
The classpath resource from which to read the jBPM configuration. Optional, defaults to
jbpm.cfg.xml.
|
ejb/TimerEntityBean |
EJB Reference |
Link to the local entity bean that
implements the scheduler service. Required for processes that contain
timers.
|
jdbc/JbpmDataSource |
Resource Manager Reference |
Logical name of the data source that provides JDBC connections to the
persistence service. Must match
the hibernate.connection.datasource property in the Hibernate
configuration file.
|
jms/JbpmConnectionFactory |
Resource Manager Reference |
Logical name of the factory that provides JMS connections to the
message service. Required for
processes that contain asynchronous continuations.
|
jms/JobQueue |
Message Destination Reference |
The message service sends job messages to the queue referenced here.
To ensure this is the same queue from which the job listener bean receives messages, the message-destination-link
points to a common logical destination, JobQueue.
|
- Author:
- Jim Rigsbee, Tom Baeyens, Alejandro Guizar
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandServiceBean
public CommandServiceBean()
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
execute
public java.lang.Object execute(org.jbpm.command.Command command)
- Specified by:
execute in interface org.jbpm.command.CommandService
setSessionContext
public void setSessionContext(javax.ejb.SessionContext sessionContext)
- Specified by:
setSessionContext in interface javax.ejb.SessionBean
ejbRemove
public void ejbRemove()
- Specified by:
ejbRemove in interface javax.ejb.SessionBean
ejbActivate
public void ejbActivate()
- Specified by:
ejbActivate in interface javax.ejb.SessionBean
ejbPassivate
public void ejbPassivate()
- Specified by:
ejbPassivate in interface javax.ejb.SessionBean
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.