Base class for activemq.cmsutil.CmsTemplate and other CMS-accessing gateway helpers, defining common properties such as the CMS cms.ConnectionFactory to operate on.
More...
#include <src/main/activemq/cmsutil/CmsAccessor.h>
Detailed Description
Base class for activemq.cmsutil.CmsTemplate and other CMS-accessing gateway helpers, defining common properties such as the CMS cms.ConnectionFactory to operate on.
The subclass activemq.cmsutil.CmsDestinationAccessor adds further, destination-related properties.
Not intended to be used directly.
- See Also
- activemq.cmsutil.CmsDestinationAccessor
-
activemq.cmsutil.CmsTemplate
Constructor & Destructor Documentation
activemq::cmsutil::CmsAccessor::CmsAccessor |
( |
| ) |
|
virtual activemq::cmsutil::CmsAccessor::~CmsAccessor |
( |
| ) |
|
|
virtual |
Member Function Documentation
virtual void activemq::cmsutil::CmsAccessor::checkConnectionFactory |
( |
| ) |
|
|
protectedvirtual |
Verifies that the connection factory is valid.
- Exceptions
-
IllegalStateException | if this object has not been initialized. |
virtual cms::Connection* activemq::cmsutil::CmsAccessor::createConnection |
( |
| ) |
|
|
protectedvirtual |
Create a CMS Connection via this template's ConnectionFactory.
- Returns
- the new CMS Connection
- Exceptions
-
CMSException | if thrown by CMS API methods |
IllegalStateException | if this object has not been initialized. |
Create a CMS Session for the given Connection.
- Parameters
-
con | The CMS Connection to create a Session for |
- Returns
- the new CMS Session
- Exceptions
-
CMSException | if thrown by CMS API methods |
IllegalStateException | if this object has not been initialized. |
virtual void activemq::cmsutil::CmsAccessor::destroy |
( |
| ) |
|
|
inlineprotectedvirtual |
Return the ConnectionFactory that this accessor uses for obtaining CMS Connections.
Return the ConnectionFactory that this accessor uses for obtaining CMS Connections.
Return the acknowledgment mode for CMS sessions.
- Returns
- the acknowledgment mode applied by this accessor
virtual void activemq::cmsutil::CmsAccessor::init |
( |
| ) |
|
|
protectedvirtual |
Initializes this object and prepares it for use.
This should be called before any other methods are called. This version does nothing.
- Exceptions
-
CMSException | if an error occurs during initialization. |
IllegalStateException | if this object has already been initialized. |
Reimplemented in activemq::cmsutil::CmsTemplate, and activemq::cmsutil::CmsDestinationAccessor.
virtual void activemq::cmsutil::CmsAccessor::setConnectionFactory |
( |
cms::ConnectionFactory * |
connectionFactory | ) |
|
|
inlinevirtual |
Set the ConnectionFactory to use for obtaining CMS Connections.
Set the CMS acknowledgment mode that is used when creating a CMS Session to send a message.
Default is AUTO_ACKNOWLEDGE
.
- Parameters
-
sessionAcknowledgeMode | The acknowledgment mode to assign to the Session. |
The documentation for this class was generated from the following file: