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 » Correlation problem

Post new topic  Reply to topic
 Correlation problem « View previous topic :: View next topic » 
Author Message
ferloz
PostPosted: Thu Jun 23, 2005 12:52 am    Post subject: Correlation problem Reply with quote

Novice

Joined: 26 May 2005
Posts: 23

Hi all,
i've a problem with CorrelId and a DB2 field .
I'm trying to store the MsgId in a DB2 table for a later use ( see the statement below )
insert into Database.OWMV0PUI.MVIACLIDATA (MVCD_MSGID, ......)
values (InputRoot.MQMD.MsgId, ...... )

When in another msgflow i receiving the answer to the message sent before, i try to correlate
it retireving data from the table filled before with the following ESQL :

set Environment.Variables.User.CorrelId = InputRoot.Properties.ReplyIdentifier;
Set OutputLocalEnvironment.Variables.User.CliData = the(
select t from Database.OWMV0PUI.MVIACLIDATA as t
where t.MVCD_MSGID = Environment.Variables.User.CorrelId );

The column MVCD_MSGID is defined as char 32 .

Where i'm wrong ?

Can somebody help me ?




_________________
fkid
Back to top
View user's profile Send private message
Ramphart
PostPosted: Thu Jun 23, 2005 3:26 am    Post subject: Re: Correlation problem Reply with quote

Disciple

Joined: 21 Jul 2004
Posts: 150
Location: South Africa, JHB

ferloz wrote:

The column MVCD_MSGID is defined as char 32 .


You message and correlation ID is 48 long.
It typically lihe this X'414d5120434c565833362e4c4956452ebc51ba4220001501'.

- Make your DB2 field 48 char
- When you log or compare Msg ID do SUBSTRING(Cast(Root.MQMD.GroupId AS CHAR) FROM 3 FOR 48
- When you compare CorrlId use SUBSTRING(Cast(Root.MQMD.CorrelId AS CHAR) FROM 3 FOR 48
_________________
Applications Architect
Back to top
View user's profile Send private message
waugh
PostPosted: Thu Jun 23, 2005 4:45 am    Post subject: Reply with quote

Master

Joined: 19 Feb 2004
Posts: 225

FIELD TYPE BLOB SIZE 24 BYTES SHOULD WORK, this is on WINDOWS/UNIX+DB2
Back to top
View user's profile Send private message
ferloz
PostPosted: Thu Jun 23, 2005 4:54 am    Post subject: Reply with quote

Novice

Joined: 26 May 2005
Posts: 23

Thanks for the suggestions to all.

i'll try them immediatly.

Paolo
_________________
fkid
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 » Correlation problem
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.