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

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

public class CommandListener
extends java.lang.Object

Based on the jBPM enterprise code, this class handles specialisation associated with the command executor.

Author:
Kevin Conner

Field Summary
protected  org.apache.log4j.Logger log
          The logger for this class.
 
Constructor Summary
CommandListener()
           
 
Method Summary
protected  org.jbpm.command.Command extractCommand(javax.jms.Message message)
          Extract a serialized jBPM command object 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

CommandListener

public CommandListener()
Method Detail

extractCommand

protected org.jbpm.command.Command extractCommand(javax.jms.Message message)
                                           throws javax.jms.JMSException
Extract a serialized jBPM command object from the message.

Parameters:
message - The message containing the command object.
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.