Apache CXF API

org.apache.cxf.transport.jms.util
Class MessageListenerContainer

java.lang.Object
  extended by org.apache.cxf.transport.jms.util.AbstractMessageListenerContainer
      extended by org.apache.cxf.transport.jms.util.MessageListenerContainer
All Implemented Interfaces:
JMSListenerContainer

public class MessageListenerContainer
extends AbstractMessageListenerContainer

Listen for messages on a queue or topic asynchronously by registering a MessageListener. Warning: This class does not refresh connections when the server goes away This has to be handled outside.


Field Summary
 
Fields inherited from class org.apache.cxf.transport.jms.util.AbstractMessageListenerContainer
acknowledgeMode, connection, consumer, destination, durableSubscriptionName, executor, listenerHandler, LOG, messageSelector, pubSubNoLocal, running, session, transacted, transactionManager
 
Constructor Summary
MessageListenerContainer(javax.jms.Connection connection, javax.jms.Destination destination, javax.jms.MessageListener listenerHandler)
           
 
Method Summary
 void shutdown()
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.apache.cxf.transport.jms.util.AbstractMessageListenerContainer
getConnection, getExecutor, isRunning, setAcknowledgeMode, setDurableSubscriptionName, setExecutor, setMessageSelector, setPubSubNoLocal, setTransacted, setTransactionManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageListenerContainer

public MessageListenerContainer(javax.jms.Connection connection,
                                javax.jms.Destination destination,
                                javax.jms.MessageListener listenerHandler)
Method Detail

start

public void start()

stop

public void stop()

shutdown

public void shutdown()

Apache CXF API

Apache CXF