org.apache.activemq.broker.util
Class CommandMessageListener
java.lang.Object
org.apache.activemq.broker.util.CommandMessageListener
- All Implemented Interfaces:
- javax.jms.MessageListener
public class CommandMessageListener
- extends Object
- implements javax.jms.MessageListener
- Version:
- $Revision: $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandMessageListener
public CommandMessageListener(javax.jms.Session session)
onMessage
public void onMessage(javax.jms.Message message)
- Specified by:
onMessage
in interface javax.jms.MessageListener
addReplyHeaders
protected void addReplyHeaders(javax.jms.TextMessage request,
javax.jms.Message response)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
processCommand
protected javax.jms.Message processCommand(javax.jms.TextMessage request)
throws Exception
- Throws:
Exception
getSession
public javax.jms.Session getSession()
getProducer
public javax.jms.MessageProducer getProducer()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
getHandler
public CommandHandler getHandler()
throws IllegalAccessException,
IOException,
InstantiationException,
ClassNotFoundException
- Throws:
IllegalAccessException
IOException
InstantiationException
ClassNotFoundException
Copyright © 2011 Apache Software Foundation. All Rights Reserved.