org.jbpm.ejb
Class JobListenerBean

java.lang.Object
  extended by org.jbpm.ejb.CommandListenerBean
      extended by org.jbpm.ejb.JobListenerBean
All Implemented Interfaces:
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:
Alejandro Guizar

Constructor Summary
JobListenerBean()
           
 
Method Summary
protected  org.jbpm.command.Command extractCommand(javax.jms.Message message)
          Retrieves a Command instance from the given message, which is assumed to be an ObjectMessage.
 
Methods inherited from class org.jbpm.ejb.CommandListenerBean
onMessage
 
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
Description copied from class: CommandListenerBean
Retrieves a Command instance from the given message, which is assumed to be an ObjectMessage.

Subclasses may override this method to materialize the command in some other way.

Overrides:
extractCommand in class CommandListenerBean
Throws:
javax.jms.JMSException


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