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:
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 for asynchronous continuations.

The message must have a long property called jobId which identifies a job in the database. The message body, if any, is ignored.

Environment

This bean inherits its environment entries and resources available for customization from CommandListenerBean.

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 © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.