29 #include "../TransportHelper.h"
41 ImqQueue
m_Queue, m_BackupQueue, m_BackoutQueue;
64 void setOpenQueueOptions(
const long& openOptions );
67 unsigned int StripJMSHeader( ImqMessage& msg,
string& msgFormat )
const;
68 unsigned int InjectJMSHeader( ImqMessage& msg );
88 void connect(
const string& queueManagerName =
"",
const string& channelDefinition =
"",
bool force =
false );
89 void connect(
const string& queueManagerName,
const string& channelDefinition,
const string& keyRepository ,
const string& sslCypherSpec ,
const string& sslPeerName ,
bool force =
false );
91 void openQueue(
const string& queueName =
"" );
92 void openBackupQueue();
93 void openBackoutQueue(
string queueName );
96 void closeBackupQueue();
97 void closeBackoutQueue();
104 long getOne(
unsigned char* buffer,
size_t maxSize,
bool syncpoint =
true );
105 long getOne( ManagedBuffer* buffer,
bool syncpoint =
true,
bool keepJMSHeader =
true );
109 long getOne(
unsigned char* buffer,
size_t maxSize, ImqGetMessageOptions& gmo );
110 long getOne(
unsigned char* buffer,
size_t maxSize, ImqGetMessageOptions& gmo, ImqMessage& msg );
111 long getOne( ManagedBuffer* buffer, ImqGetMessageOptions& gmo );
112 long getOne( ManagedBuffer* buffer, ImqGetMessageOptions& gmo, ImqMessage& msg,
bool getForClean =
false,
bool keepJMSHeader =
true );
117 void putOne(
unsigned char* buffer,
size_t bufferSize,
bool syncpoint =
true );
121 void putOne(
unsigned char* buffer,
size_t bufferSize, ImqPutMessageOptions& pmo );
122 void putOne(
unsigned char* buffer,
size_t bufferSize, ImqPutMessageOptions& pmo, ImqMessage& msg );
123 void putOne( ManagedBuffer* buffer, ImqPutMessageOptions& pmo, ImqMessage& msg );
125 void putToDeadLetterQueue( ImqMessage& msg );
126 void clearMessages();
134 long getGroupMessage( ManagedBuffer* groupMessageBuffer,
const string& groupId,
bool& isCleaningUp );
135 void putGroupMessage( ManagedBuffer* buffer,
const string& batchId,
long messageSequence,
bool isLast );
137 void putSAAmessage(
const TransportReplyOptions& replyOptions,
const string& replyQueue, ManagedBuffer* buffer,
const string& batchId,
long messageSequence,
bool isLast );
142 void putOneRequest(
unsigned char* buffer,
size_t bufferSize,
const string& rtqName,
const string& rtqmName,
TransportReplyOptions& replyOptions );
143 void putOneReply(
unsigned char* buffer,
size_t bufferSize = 0,
long feedback = 0, TRANSPORT_MESSAGE_TYPE replyType = TMT_REPLY );
147 void putOneReply( ManagedBuffer* buffer,
long feedback );
152 long peek(
const string& queue =
"",
bool first =
true );
155 void setApplicationName(
const string& applicationName );
157 void setMessageFormat(
const string& format );
158 string getLastMessageFormat()
const;
165 void clearSSLOptions();
169 long getQueueDepth(
const string& queueName =
"");
170 long getOpenOutputCount(
string queueName =
"" );
171 long getOpenInputCount(
string queueName =
"" );
173 static void setSyncPointParticipation( ImqPutMessageOptions& pmo,
unsigned char value );
174 static void setSyncPointParticipation( ImqGetMessageOptions& gmo,
unsigned char value );
176 static ImqBinary createBinary(
void* value );
179 void beginXATransaction();