org.apache.servicemix.jms.standard
Class StandardConsumerProcessor

java.lang.Object
  extended by org.apache.servicemix.jms.AbstractJmsProcessor
      extended by org.apache.servicemix.jms.standard.StandardConsumerProcessor
All Implemented Interfaces:
SoapExchangeProcessor

public class StandardConsumerProcessor
extends AbstractJmsProcessor


Field Summary
protected  javax.jms.Destination destination
           
protected  java.util.concurrent.atomic.AtomicBoolean running
           
protected  javax.jms.Session session
           
 
Fields inherited from class org.apache.servicemix.jms.AbstractJmsProcessor
channel, connection, CONTENT_TYPE, context, endpoint, logger, replyToDestination, soapHelper, store, STYLE_QUEUE, STYLE_TOPIC
 
Constructor Summary
StandardConsumerProcessor(JmsEndpoint endpoint)
           
 
Method Summary
protected  void doInit(javax.naming.InitialContext ctx)
           
protected  void doShutdown()
           
protected  void doStart()
           
protected  void doStop()
           
 void onMessage(javax.jms.Message message)
           
protected  void poll()
           
 void process(javax.jbi.messaging.MessageExchange exchange)
           
 
Methods inherited from class org.apache.servicemix.jms.AbstractJmsProcessor
commonDoStartTasks, createContext, createMessageFromExchange, fromNMS, fromNMSResponse, getConnectionFactory, getInitialContext, getStore, init, shutdown, start, stop, toNMS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

protected javax.jms.Session session

destination

protected javax.jms.Destination destination

running

protected java.util.concurrent.atomic.AtomicBoolean running
Constructor Detail

StandardConsumerProcessor

public StandardConsumerProcessor(JmsEndpoint endpoint)
                          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

doInit

protected void doInit(javax.naming.InitialContext ctx)
               throws java.lang.Exception
Overrides:
doInit in class AbstractJmsProcessor
Throws:
java.lang.Exception

doStart

protected void doStart()
                throws java.lang.Exception
Overrides:
doStart in class AbstractJmsProcessor
Throws:
java.lang.Exception

doStop

protected void doStop()
               throws java.lang.Exception
Overrides:
doStop in class AbstractJmsProcessor
Throws:
java.lang.Exception

doShutdown

protected void doShutdown()
                   throws java.lang.Exception
Overrides:
doShutdown in class AbstractJmsProcessor
Throws:
java.lang.Exception

poll

protected void poll()

onMessage

public void onMessage(javax.jms.Message message)

process

public void process(javax.jbi.messaging.MessageExchange exchange)
             throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2005-2014 FuseSource. All Rights Reserved.