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 » UserDefined Properties and Response Message

Post new topic  Reply to topic
 UserDefined Properties and Response Message « View previous topic :: View next topic » 
Author Message
Bharat_123
PostPosted: Tue Nov 25, 2008 12:01 pm    Post subject: UserDefined Properties and Response Message Reply with quote

Acolyte

Joined: 15 Sep 2008
Posts: 58

Hello


I am struck with constructing Response message with UserdefinedPropertie elements.

I have 3 different Environment Variables declared as External in Compute node. and the property of Compute MOde is set as LocalEnvironment and Message.
And in the Output node Destination Mode property is set as Destination List.

I have 5 elements in response and also i wanted to add 3 Environment Variables to my response message(Total .

When i test with above settings Its throwing me an Error - Invalid Destination list

Is there any way to resolve this.

Any sample code also appreciated.

Thank You
Back to top
View user's profile Send private message
paranoid221
PostPosted: Tue Nov 25, 2008 12:05 pm    Post subject: Reply with quote

Centurion

Joined: 03 Apr 2006
Posts: 101
Location: USA

It wasn't clear from your post if you've populated the destination list in your compute node before the output node.
Copy paste your current ESQL and we'd be able to give you more accurate pointers.
_________________
LIFE is a series of complex calculations, somewhere multiplied by ZERO.
Back to top
View user's profile Send private message
Bharat_123
PostPosted: Tue Nov 25, 2008 12:55 pm    Post subject: Reply with quote

Acolyte

Joined: 15 Sep 2008
Posts: 58

Here is little code

Declaration of External Variables

DECLARE Environ EXTERNAL CHARACTER 'NOTSPECIFIED';
DECLARE Hname EXTERNAL CHARACTER 'NOTSPECIFIED';
DECLARE Tsource EXTERNAL CHARACTER 'NOTSPECIFIED';

Creating new elemenst in Response

CREATE LASTCHILD OF OutputDestinationList.XMLNSC.PBMtags NAME Environment VALUE Environ;
CREATE LASTCHILD OF OutputDestinationList.XMLNSC.PBMtags NAME Host_Name VALUE Hname;
CREATE LASTCHILD OF OutputDestinationList.XMLNSC.PBMtags NAME Trans_Source VALUE Tsource;

And in MQ Output node properties properties Destination Mode as Destion List. (I guess i understand correctly from online help document).

Or is there any way to collect those 3 environment variables in response message.

Thank You
Back to top
View user's profile Send private message
paranoid221
PostPosted: Tue Nov 25, 2008 1:37 pm    Post subject: Reply with quote

Centurion

Joined: 03 Apr 2006
Posts: 101
Location: USA

Looks like you haven't read the documentation at all. If that's true, it's my sincere suggestion to start learning how to code using ESQL.
Back to your issue:

1) If you do not have a requirement to output a message to more than one destination or if you do not have to route the flow processing to a Label node, you shouldnot be using the destinationlist in compute node and the property on the output node should be changed to 'Queue Name'.

2) If you are trying to add new elements into the output message, your code should really be

OutputRoot.XMLNSC.PBMtags.Value1 = Environ;
......
.....

Hope that helps
_________________
LIFE is a series of complex calculations, somewhere multiplied by ZERO.
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 » UserDefined Properties and Response Message
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.