ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MsgId and CorrelId are blank after MQOutput node

Post new topic  Reply to topic
 MsgId and CorrelId are blank after MQOutput node « View previous topic :: View next topic » 
Author Message
lium
PostPosted: Mon Sep 08, 2008 7:06 pm    Post subject: MsgId and CorrelId are blank after MQOutput node Reply with quote

Disciple

Joined: 17 Jul 2002
Posts: 184

I have an application to send request to legacy system via MQOutput. It stores some session info into a local queue(let's call it session queue) via MQOutput before it sends out the request. To correlate the legacy response and session message, the correlid of session message(1) = msgId of request message to legacy (2)= correlId of response message from legacy message(3).
To implement (1) =(2), the flow uses FlowOrder to coordinate:
first terminal -> Compute11 node which set MsgId =MQMI_NONE and CorrelId = MQCI_NONE -> MQOutput1 which stores session message with "New Message Id" and "New Correlation Id" CHECKED. ->Compute12 which stores session message correlId as:
SET Environment.variables.requestOutboundCorrelId = InputLocalEnvironment.WrittenDestination.MQ.DestinationData.correlId;

Second Terminal -> Compute21 which addes MQMD and MQIIH, it has code as SET OutputRoot.MQMD.MsgId = Environment.variables.requestOutboundCorrelId -> MQOutput2 with "New Message ID" and "New Correlation Id" UNCHECKED

The flow works as designed in windows, through debugger, I saw after MQOutput1, the new MsgId and CorrelId were both populated to LocalEnvironment.WrittenDestination.MQ.DestinationData. The problem is when the flow was deployed to Z/OS, both MsgId and CorrelId were blank(MQMI_NONE and MQCI_NONE) after MQOutput1 which it is not supposed to be.
PS. The session queue is with indexType = MQIT_CORREL_ID.
The Compute11 and Compute12 have mode "Message", the Compute21 has mode "LocalEnvironment and Message" since the MQOutput2 has Destination Mode "Destination List". All nodes have Transaction mode "Automatic"
I personally suspect a little it could be transaction issue. Since in Z/OS, it is global transaction, so MQOutput1 and MQOutput2 will be committed at the same time? but MQOutput1 and MQOutput2 are coordiated by FlowOrder, MQOutput1 should go before MQOutput2 , hmm, really confused.
Could anybody help me out of this?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Sep 08, 2008 8:10 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Check the transaction value on the MQOutput nodes. Make sure it says none.
Check again after redeploy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
lium
PostPosted: Tue Sep 09, 2008 5:45 am    Post subject: Reply with quote

Disciple

Joined: 17 Jul 2002
Posts: 184

It does NOT work even with the MQOutput1 and MQOutput2 with Transaction mode "NO"
Back to top
View user's profile Send private message
lium
PostPosted: Tue Sep 09, 2008 7:28 am    Post subject: Reply with quote

Disciple

Joined: 17 Jul 2002
Posts: 184

One thing I want to correct or be more accurate is:
After MQOutput1, the MsgId and CorrelId in MQMD were both blank(This is normal, the same as windows). The LocalEnvironment.WrittenDestination.MQ.DestinationData.MsgId is NOT blank, but InputLocalEnvironment.WrittenDestination.MQ.DestinationData.correlId is blank which is the problem even we set "New Correlation ID" in MQOutput1
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Sep 09, 2008 6:48 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

lium wrote:
One thing I want to correct or be more accurate is:
After MQOutput1, the MsgId and CorrelId in MQMD were both blank(This is normal, the same as windows). The LocalEnvironment.WrittenDestination.MQ.DestinationData.MsgId is NOT blank, but InputLocalEnvironment.WrittenDestination.MQ.DestinationData.correlId is blank which is the problem even we set "New Correlation ID" in MQOutput1

Open a PMR with IBM Support.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
lium
PostPosted: Wed Sep 10, 2008 10:34 am    Post subject: Reply with quote

Disciple

Joined: 17 Jul 2002
Posts: 184

Yes, the customer has opened it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MsgId and CorrelId are blank after MQOutput node
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.