org.mule.transport.jms
Class MultiConsumerJmsMessageReceiver.JmsWorker

java.lang.Object
  extended by org.mule.transport.AbstractReceiverWorker
      extended by org.mule.transport.jms.MultiConsumerJmsMessageReceiver.JmsWorker
All Implemented Interfaces:
Runnable, javax.resource.spi.work.Work
Enclosing class:
MultiConsumerJmsMessageReceiver

protected class MultiConsumerJmsMessageReceiver.JmsWorker
extends AbstractReceiverWorker


Field Summary
 
Fields inherited from class org.mule.transport.AbstractReceiverWorker
endpoint, messages, out, receiver
 
Constructor Summary
MultiConsumerJmsMessageReceiver.JmsWorker(Message message, AbstractMessageReceiver receiver, org.mule.transport.jms.MultiConsumerJmsMessageReceiver.SubReceiver subReceiver)
           
 
Method Summary
protected  void bindTransaction(Transaction tx)
          Template method used to bind the resources of this receiver to the transaction.
protected  Object preProcessMessage(Object message)
          Before a message is passed into Mule this callback is called and can be used by the worker to inspect the message before it gets sent to Mule
 
Methods inherited from class org.mule.transport.AbstractReceiverWorker
doRun, handleException, handleResults, postProcessMessage, preRouteMuleMessage, release, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiConsumerJmsMessageReceiver.JmsWorker

public MultiConsumerJmsMessageReceiver.JmsWorker(Message message,
                                                 AbstractMessageReceiver receiver,
                                                 org.mule.transport.jms.MultiConsumerJmsMessageReceiver.SubReceiver subReceiver)
Method Detail

preProcessMessage

protected Object preProcessMessage(Object message)
                            throws Exception
Description copied from class: AbstractReceiverWorker
Before a message is passed into Mule this callback is called and can be used by the worker to inspect the message before it gets sent to Mule

Overrides:
preProcessMessage in class AbstractReceiverWorker
Parameters:
message - the next message to be processed
Returns:
the message to be processed. If Null is returned the message will not get processed.
Throws:
Exception

bindTransaction

protected void bindTransaction(Transaction tx)
                        throws TransactionException
Description copied from class: AbstractReceiverWorker
Template method used to bind the resources of this receiver to the transaction. Only transactional transports need implment this method

Specified by:
bindTransaction in class AbstractReceiverWorker
Parameters:
tx - the current transaction or null if there is no transaction
Throws:
TransactionException


Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.