org.apache.activemq.broker.util
Class CommandAgent
java.lang.Object
org.apache.activemq.broker.util.CommandAgent
- All Implemented Interfaces:
- javax.jms.ExceptionListener, Service
public class CommandAgent
- extends Object
- implements Service, javax.jms.ExceptionListener
An agent which listens to commands on a JMS destination
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandAgent
public CommandAgent()
start
@PostConstruct
public void start()
throws Exception
- Specified by:
start in interface Service
- Throws:
Exception
stop
@PreDestroy
public void stop()
throws Exception
- Specified by:
stop in interface Service
- Throws:
Exception
getBrokerUrl
public String getBrokerUrl()
setBrokerUrl
public void setBrokerUrl(String brokerUrl)
getUsername
public String getUsername()
setUsername
public void setUsername(String username)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
getConnectionFactory
public javax.jms.ConnectionFactory getConnectionFactory()
setConnectionFactory
public void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
getConnection
public javax.jms.Connection getConnection()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
setConnection
public void setConnection(javax.jms.Connection connection)
getCommandDestination
public javax.jms.Destination getCommandDestination()
setCommandDestination
public void setCommandDestination(javax.jms.Destination commandDestination)
createConnection
protected javax.jms.Connection createConnection()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
createCommandDestination
protected javax.jms.Destination createCommandDestination()
onException
public void onException(javax.jms.JMSException exception)
- Specified by:
onException in interface javax.jms.ExceptionListener
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.