activemq::core::ActiveMQXAConnectionFactory Class Reference

#include <src/main/activemq/core/ActiveMQXAConnectionFactory.h>

Inheritance diagram for activemq::core::ActiveMQXAConnectionFactory:
Inheritance graph
[legend]

Public Member Functions

 ActiveMQXAConnectionFactory ()
 ActiveMQXAConnectionFactory (const std::string &uri, const std::string &username="", const std::string &password="")
 Constructor.
 ActiveMQXAConnectionFactory (const decaf::net::URI &uri, const std::string &username="", const std::string &password="")
 Constructor.
virtual ~ActiveMQXAConnectionFactory ()
virtual cms::XAConnectioncreateXAConnection ()
 Creates an XAConnection with the default user name and password.
virtual cms::XAConnectioncreateXAConnection (const std::string &userName, const std::string &password)
 Creates an XA connection with the specified user name and password.

Protected Member Functions

virtual ActiveMQConnectioncreateActiveMQConnection (const Pointer< transport::Transport > &transport, const Pointer< decaf::util::Properties > &properties)
 Create a new ActiveMQConnection instnace using the provided Transport and Properties.

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 ActiveMQConnection* activemq::core::ActiveMQXAConnectionFactory::createActiveMQConnection ( const Pointer< transport::Transport > &  transport,
const Pointer< decaf::util::Properties > &  properties 
) [protected, virtual]

Create a new ActiveMQConnection instnace using the provided Transport and Properties.

Subclasses can override this to control the actual type of ActiveMQConnection that is created.

Parameters:
transport The Transport that the Connection should use to communicate with the Broker.
properties The Properties that are assigned to the new Connection instance.
Returns:
a new ActiveMQConnection pointer instance.

Reimplemented from activemq::core::ActiveMQConnectionFactory.

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:

Generated on 1 Dec 2014 for activemq-cpp-3.8.2 by  doxygen 1.6.1