#include <ActiveMQSession.h>
Public Member Functions | |
ActiveMQSession (connector::SessionInfo *sessionInfo, const util::Properties &properties, ActiveMQConnection *connection) | |
virtual | ~ActiveMQSession (void) |
virtual void | close (void) throw ( cms::CMSException ) |
virtual void | commit (void) throw ( cms::CMSException ) |
virtual void | rollback (void) throw ( cms::CMSException ) |
virtual cms::MessageConsumer * | createConsumer (const cms::Destination *destination) throw ( cms::CMSException ) |
virtual cms::MessageConsumer * | createConsumer (const cms::Destination *destination, const std::string &selector) throw ( cms::CMSException ) |
virtual cms::MessageConsumer * | createDurableConsumer (const cms::Topic *destination, const std::string &name, const std::string &selector, bool noLocal=false) throw ( cms::CMSException ) |
virtual cms::MessageProducer * | createProducer (const cms::Destination *destination) throw ( cms::CMSException ) |
virtual cms::Queue * | createQueue (const std::string &queueName) throw ( cms::CMSException ) |
virtual cms::Topic * | createTopic (const std::string &topicName) throw ( cms::CMSException ) |
virtual cms::TemporaryQueue * | createTemporaryQueue (void) throw ( cms::CMSException ) |
virtual cms::TemporaryTopic * | createTemporaryTopic (void) throw ( cms::CMSException ) |
virtual cms::Message * | createMessage (void) throw ( cms::CMSException ) |
virtual cms::BytesMessage * | createBytesMessage (void) throw ( cms::CMSException ) |
virtual cms::BytesMessage * | createBytesMessage (const unsigned char *bytes, unsigned long bytesSize) throw ( cms::CMSException ) |
virtual cms::TextMessage * | createTextMessage (void) throw ( cms::CMSException ) |
virtual cms::TextMessage * | createTextMessage (const std::string &text) throw ( cms::CMSException ) |
virtual cms::MapMessage * | createMapMessage (void) throw ( cms::CMSException ) |
virtual cms::Session::AcknowledgeMode | getAcknowledgeMode (void) const |
virtual bool | isTransacted (void) const |
virtual void | send (cms::Message *message, ActiveMQProducer *producer) throw ( cms::CMSException ) |
virtual void | onDestroySessionResource (ActiveMQSessionResource *resource) throw ( cms::CMSException ) |
virtual void | acknowledge (ActiveMQConsumer *consumer, ActiveMQMessage *message) throw ( cms::CMSException ) |
virtual cms::ExceptionListener * | getExceptionListener (void) |
virtual connector::SessionInfo * | getSessionInfo (void) |
Private Attributes | |
connector::SessionInfo * | sessionInfo |
ActiveMQTransaction * | transaction |
ActiveMQConnection * | connection |
bool | closed |
|
|
|
|
|
Called to acknowledge the receipt of a message.
|
|
Closes the Session
|
|
Commits all messages done in this transaction and releases any locks currently held.
|
|
Creates a BytesMessage and sets the paylod to the passed value
|
|
Creates a BytesMessage
|
|
Creates a MessageConsumer for the specified destination, using a message selector.
|
|
Creates a MessageConsumer for the specified destination.
|
|
Creates a durable subscriber to the specified topic, using a message selector
|
|
Creates a new TextMessage
|
|
Creates a new Message
|
|
Creates a MessageProducer to send messages to the specified destination.
|
|
Creates a queue identity given a Queue name.
|
|
Creates a TemporaryQueue object.
|
|
Creates a TemporaryTopic object.
|
|
Creates a new TextMessage and set the text to the value given
|
|
Creates a new TextMessage
|
|
Creates a topic identity given a Queue name.
|
|
Returns the acknowledgement mode of the session.
|
|
This method gets any registered exception listener of this sessions connection and returns it. Mainly intended for use by the objects that this session creates so that they can notify the client of exceptions that occur in the context of another thread.
|
|
Gets the Session Information object for this session, if the session is closed than this returns null
|
|
Gets if the Sessions is a Transacted Session
|
|
When a ActiveMQ core object is closed or destroyed it should call back and let the session know that it is going away, this allows the session to clean up any associated resources. This method destroy's the data that is associated with a Producer object
|
|
Rollsback all messages done in this transaction and releases any locks currently held.
|
|
Sends a message from the Producer specified
|
|
|
|
|
|
|
|
|