#include <ActiveMQConnectionFactory.h>
Public Member Functions | |
| ActiveMQConnectionFactory (void) | |
| ActiveMQConnectionFactory (const std::string &url, const std::string &username="", const std::string &password="", const std::string &clientId="") | |
| virtual | ~ActiveMQConnectionFactory (void) |
| virtual cms::Connection * | createConnection (void) throw ( cms::CMSException ) |
| virtual cms::Connection * | createConnection (const std::string &username, const std::string &password, const std::string &clientId="") throw ( cms::CMSException ) |
| virtual void | setUsername (const std::string &username) |
| virtual const std::string & | getUsername (void) const |
| virtual void | setPassword (const std::string &password) |
| virtual const std::string & | getPassword (void) const |
| virtual void | setBrokerURL (const std::string &brokerURL) |
| virtual const std::string & | getBrokerURL (void) const |
| virtual void | setClientId (const std::string &clientId) |
| virtual const std::string & | getClientId (void) const |
Protected Member Functions | |
| virtual void | parseURL (const std::string &URI, util::Properties &properties) throw ( exceptions::IllegalArgumentException ) |
Private Attributes | |
| std::string | username |
| std::string | password |
| std::string | clientId |
| std::string | brokerURL |
|
|
|
|
||||||||||||||||||||
|
Constructor
|
|
|
|
|
||||||||||||||||
|
Creates a connection with the specified user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called.
|
|
|
Creates a connection with the default user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called.
|
|
|
Gets the Broker URL that this factory will use when creating a new connection instance.
|
|
|
Gets the Client Id that this factory will use when creating a new connection instance.
|
|
|
Gets the password that this factory will use when creating a new connection instance.
|
|
|
Gets the username that this factory will use when creating a new connection instance.
|
|
||||||||||||
|
Parses the properties out of the provided Broker URI and sets them in the passed Properties Object.
|
|
|
Sets the Broker URL that should be used when creating a new connection instance
|
|
|
Sets the Client Id that should be used when creating a new connection instance
|
|
|
Sets the password that should be used when creating a new connection
|
|
|
Sets the username that should be used when creating a new connection
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.5