org.jbpm.ejb.impl
Class JobListenerBean

java.lang.Object
  extended by org.jbpm.ejb.impl.CommandListenerBean
      extended by org.jbpm.ejb.impl.JobListenerBean
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.MessageDrivenBean, javax.jms.MessageListener

public class JobListenerBean
extends CommandListenerBean

Message-driven bean that listens for messages containing a reference to a pending Job job. to support asynchronous continuations. The message must have a property called jobId of type long which references a pending Job in the database. The message body, if any, is ignored.

Environment

This bean extends the {@link CommandListenerBean} and inherits its environment entries and resources available for customization.

Author:
Tom Baeyens, Alejandro Guizar
See Also:
Serialized Form

Constructor Summary
JobListenerBean()
           
 
Method Summary
protected  org.jbpm.command.Command extractCommand(javax.jms.Message message)
           
 
Methods inherited from class org.jbpm.ejb.impl.CommandListenerBean
ejbCreate, ejbRemove, onMessage, setMessageDrivenContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobListenerBean

public JobListenerBean()
Method Detail

extractCommand

protected org.jbpm.command.Command extractCommand(javax.jms.Message message)
                                           throws javax.jms.JMSException
Overrides:
extractCommand in class CommandListenerBean
Throws:
javax.jms.JMSException


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.