org.jboss.soa.esb.services.jbpm.integration.command
Class JobListener

java.lang.Object
  extended by org.jboss.soa.esb.services.jbpm.integration.command.JobListener
All Implemented Interfaces:
javax.jms.MessageListener

public class JobListener
extends java.lang.Object

Based on the jBPM enterprise code, this class handles specialisation associated with job and timer executor.

Author:
Kevin Conner

Field Summary
protected  org.apache.log4j.Logger log
          The logger for this class.
 
Constructor Summary
JobListener()
           
 
Method Summary
protected  org.jbpm.command.Command extractCommand(javax.jms.Message message)
          Extract a job or timer reference from the message.
 void onMessage(javax.jms.Message message)
          Handle the delivery of a job message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.log4j.Logger log
The logger for this class.

Constructor Detail

JobListener

public JobListener()
Method Detail

extractCommand

protected org.jbpm.command.Command extractCommand(javax.jms.Message message)
                                           throws javax.jms.JMSException
Extract a job or timer reference from the message.

Parameters:
message - The message containing the job or timer reference.
Returns:
The jBPM command.
Throws:
javax.jms.JMSException - For errors during extraction.

onMessage

public void onMessage(javax.jms.Message message)
Handle the delivery of a job message.

Specified by:
onMessage in interface javax.jms.MessageListener
Parameters:
message - the JMS message containing the job.