org.jbpm.enterprise.impl
Class CommandReceiverMDB
java.lang.Object
org.jbpm.enterprise.impl.CommandReceiverMDB
- All Implemented Interfaces:
- java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.MessageDrivenBean, javax.jms.MessageListener
public class CommandReceiverMDB
- extends java.lang.Object
- implements javax.ejb.MessageDrivenBean, javax.jms.MessageListener
This message-driven bean listens for ObjectMessages that contain a
Command
object. The commands that are received are executed by a
LocalCommandService bean (using the local interface). The local command
service can be configured in the deployment descriptor. The local reference
used is java:comp/env/ejb and then LocalCommandServiceHome.
- Author:
- Jim Rigsbee, Tom Baeyens
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandReceiverMDB
public CommandReceiverMDB()
onMessage
public void onMessage(javax.jms.Message message)
- Specified by:
onMessage
in interface javax.jms.MessageListener
extractCommand
protected Command<?> extractCommand(javax.jms.Message message)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
setMessageDrivenContext
public void setMessageDrivenContext(javax.ejb.MessageDrivenContext messageDrivenContext)
- Specified by:
setMessageDrivenContext
in interface javax.ejb.MessageDrivenBean
ejbCreate
public void ejbCreate()
ejbRemove
public void ejbRemove()
- Specified by:
ejbRemove
in interface javax.ejb.MessageDrivenBean