17 #ifndef _ACTIVEMQ_CORE_ACTIVEMQSESSION_H_
18 #define _ACTIVEMQ_CORE_ACTIVEMQSESSION_H_
40 class ActiveMQConnection;
73 return this->kernel->isStarted();
80 virtual void commit();
82 virtual void rollback();
84 virtual void recover();
89 const std::string& selector);
92 const std::string& selector,
96 const std::string& name,
97 const std::string& selector,
98 bool noLocal =
false);
106 virtual cms::Queue* createQueue(
const std::string& queueName);
108 virtual cms::Topic* createTopic(
const std::string& topicName);
118 virtual cms::BytesMessage* createBytesMessage(
const unsigned char* bytes,
int bytesSize);
129 return this->kernel->getAcknowledgeMode();
133 return this->kernel->isTransacted();
136 virtual void unsubscribe(
const std::string& name);
148 return this->kernel->getExceptionListener();
159 this->kernel->setMessageTransformer(transformer);
168 return this->kernel->getMessageTransformer();
177 return this->kernel->getSessionInfo();
186 return this->kernel->getSessionId();
193 return this->kernel->getConnection();