|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ selectionString java without using JMS |
« View previous topic :: View next topic » |
Author |
Message
|
cszeke |
Posted: Fri May 14, 2010 12:57 pm Post subject: MQ selectionString java without using JMS |
|
|
Newbie
Joined: 14 May 2010 Posts: 1
|
I am trying to use the selectionString in the MQOD to query against a queue.
We are using version 7 and I can't find any documentation on where to set the string or what to do with the MQOD once it is set.
We are converting from a JMS client to direct MQ api calls using java.
Any all help would be appreciated.
below is a code snippet of my get message
Code: |
MQQueueManager qm = new MQQueueManager(qManager,props);
MQQueue queue = qm.accessQueue (queue_name, MQConstants.MQOO_INPUT_AS_Q_DEF);
MQMessage message = new MQMessage ();
MQGetMessageOptions gmo = new MQGetMessageOptions ();
gmo.options = MQConstants.MQGMO_NO_WAIT;
if(transactional)
gmo.options |= MQConstants.MQPMO_SYNCPOINT;
try
{
queue.get (message, gmo);
int buf_size = message.getDataLength();
byte [] buf = new byte[buf_size];
message.readFully(buf);
return new String(buf);
}
catch (Exception mqe)
{
...
} |
|
|
Back to top |
|
 |
bruce2359 |
Posted: Fri May 14, 2010 2:11 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Moved to Java/JMS _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri May 14, 2010 8:54 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|