activemq::core::ActiveMQXAConnectionFactory Class Reference
#include <src/main/activemq/core/ActiveMQXAConnectionFactory.h>
Constructor & Destructor Documentation
| activemq::core::ActiveMQXAConnectionFactory::ActiveMQXAConnectionFactory |
( |
|
) |
|
| activemq::core::ActiveMQXAConnectionFactory::ActiveMQXAConnectionFactory |
( |
const std::string & |
uri, |
|
|
const std::string & |
username = "", |
|
|
const std::string & |
password = "" | |
|
) |
| | |
Constructor.
- Parameters:
-
| uri | the URI of the Broker we are connecting to. |
| username | to authenticate with, defaults to "" |
| password | to authenticate with, defaults to "" |
| activemq::core::ActiveMQXAConnectionFactory::ActiveMQXAConnectionFactory |
( |
const decaf::net::URI & |
uri, |
|
|
const std::string & |
username = "", |
|
|
const std::string & |
password = "" | |
|
) |
| | |
Constructor.
- Parameters:
-
| uri | the URI of the Broker we are connecting to. |
| username | to authenticate with, defaults to "" |
| password | to authenticate with, defaults to "" |
| virtual activemq::core::ActiveMQXAConnectionFactory::~ActiveMQXAConnectionFactory |
( |
|
) |
[virtual] |
Member Function Documentation
| virtual cms::XAConnection* activemq::core::ActiveMQXAConnectionFactory::createXAConnection |
( |
const std::string & |
userName, |
|
|
const std::string & |
password | |
|
) |
| | [virtual] |
Creates an XA connection with the specified user name and password.
The connection is created in stopped mode just as the standard ConnectionFactory creates a new Connection. No messages will be delivered until the Connection.start method is explicitly called.
- Returns:
- a new XAConnectionFactory instance, the caller owns the returned pointer.
- Exceptions:
-
| CMSException | if an internal error occurs while creating the Connection. |
| CMSSecurityException | if the client authentication fails because the user name or password are invalid. |
Implements cms::XAConnectionFactory.
| virtual cms::XAConnection* activemq::core::ActiveMQXAConnectionFactory::createXAConnection |
( |
|
) |
[virtual] |
Creates an XAConnection with the default user name and password.
The connection is created in stopped mode just as the standard Connection object is created from the ConnectionFactory. No messages will be delivered until the Connection.start method is explicitly called.
- Returns:
- a new XAConnectionFactory instance, the caller owns the returned pointer.
- Exceptions:
-
| CMSException | if an internal error occurs while creating the Connection. |
| CMSSecurityException | if the client authentication fails because the user name or password are invalid. |
Implements cms::XAConnectionFactory.
The documentation for this class was generated from the following file: