org.jbpm.ejb.impl
Class CommandServiceBean
java.lang.Object
org.jbpm.ejb.impl.CommandServiceBean
- All Implemented Interfaces:
- Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean, org.jbpm.command.CommandService
public class CommandServiceBean
- extends 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 the
JbpmConfiguration to be used by this command service. In case the
environment key JbpmCfgResource is specified, that value is interpreted as the
name of the configuration resource to load from the classpath. If that key is absent, the
default configuration file will be used (jbpm.cfg.xml).
- Throws:
javax.ejb.CreateException
execute
public 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 © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.