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 java.lang.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 java.lang.Exception
- Specified by:
start
in interface Service
- Throws:
java.lang.Exception
stop
@PreDestroy
public void stop()
throws java.lang.Exception
- Specified by:
stop
in interface Service
- Throws:
java.lang.Exception
getBrokerUrl
public java.lang.String getBrokerUrl()
setBrokerUrl
public void setBrokerUrl(java.lang.String brokerUrl)
getUsername
public java.lang.String getUsername()
setUsername
public void setUsername(java.lang.String username)
getPassword
public java.lang.String getPassword()
setPassword
public void setPassword(java.lang.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-2016. All Rights Reserved.