Author |
Message |
Topic: how caon i assign correlation id to response maessage |
paolone
Replies: 8 Views: 9605
|
Forum: IBM MQ Java / JMS Posted: Wed Apr 28, 2010 4:32 am Subject: how caon i assign correlation id to response maessage |
yes, i get 2033 (no message available). anyway the message is in the queue but with with correlationid=0 and his own (unic) messageid...
i don't understand why...
thanks Mr Butcher |
Topic: how caon i assign correlation id to response maessage |
paolone
Replies: 8 Views: 9605
|
Forum: IBM MQ Java / JMS Posted: Wed Apr 28, 2010 2:59 am Subject: how caon i assign correlation id to response maessage |
i'm sorry, i changed the code as you made me notice in the last post.
MQMessage queueMessage = new MQMessage();
queueMessage.WriteString(messqaggio);
queueMessage.Format = MQC.MQFMT_STRING;
queu ... |
Topic: how caon i assign correlation id to response maessage |
paolone
Replies: 8 Views: 9605
|
Forum: IBM MQ Java / JMS Posted: Wed Apr 28, 2010 2:10 am Subject: how caon i assign correlation id to response maessage |
i am not a java guru, but
queuePutMessageOptions.Options = MQC.MQRO_COPY_MSG_ID_TO_CORREL_ID;
MQRO_COPY_MSG_ID_TO_CORREL_ID is a report option, not a put message option.
in addition i do not ... |
Topic: how caon i assign correlation id to response maessage |
paolone
Replies: 8 Views: 9605
|
Forum: IBM MQ Java / JMS Posted: Wed Apr 28, 2010 12:46 am Subject: how caon i assign correlation id to response maessage |
Hi, i'm trying to assign the correlation id to a response message.
MQMessage queueMessage = new MQMessage();
queueMessage.WriteString(messqaggio);
queueMessage.Format = MQC.MQFMT_STRING;
queue ... |
Topic: help retrive message from a queue |
paolone
Replies: 7 Views: 4409
|
Forum: IBM MQ Java / JMS Posted: Tue Apr 27, 2010 6:53 am Subject: help retrive message from a queue |
ok, i understood the problem but where and how i tell the get method which message retrive (how can associate the request messageid whit the response correlation id?)
You specify the id in question ... |
Topic: help retrive message from a queue |
paolone
Replies: 7 Views: 4409
|
Forum: IBM MQ Java / JMS Posted: Tue Apr 27, 2010 6:26 am Subject: help retrive message from a queue |
MQ copy the message ID in the correlationID of the response queue so that the GET metod retrive the right message.
How does the GET know which request you're looking for the response of?
Where s ... |
Topic: help retrive message from a queue |
paolone
Replies: 7 Views: 4409
|
Forum: IBM MQ Java / JMS Posted: Tue Apr 27, 2010 6:03 am Subject: help retrive message from a queue |
You set the match options to read a message by correl id. At what point in the code do you specify which correl id it should match on?
thanks for replay...i'm despered:)
Nowhere. I have ... |
Topic: help retrive message from a queue |
paolone
Replies: 7 Views: 4409
|
Forum: IBM MQ Java / JMS Posted: Tue Apr 27, 2010 5:24 am Subject: help retrive message from a queue |
Hello. I'm trying to put a message on a requestQueue and retrive the response on a responseQueue. The put and the get seems to work but it seems that the response i read is the "first" in th ... |