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 » ESQL References and Procedures

Post new topic  Reply to topic
 ESQL References and Procedures « View previous topic :: View next topic » 
Author Message
lanny boy
PostPosted: Tue May 24, 2005 5:47 am    Post subject: ESQL References and Procedures Reply with quote

Voyager

Joined: 24 Nov 2003
Posts: 79
Location: UK

I am currently working on a project to redesign our current wbimb infrastructure.

As part of this i have identified a lot of areas where reusable code can be used.

In order to get actual output from the message you have to use in order to tell the broker what domain is being used.
CREATE LASTCHILD OutRef DOMAIN 'MRM';

This is no problem and I understand why this needs to be used.

However i do not understand why it stops working when extend the create statement to include the name clause. eg

CREATE LASTCHILD OutRef DOMAIN 'MRM' NAME 'Field1';


The reson i want to do this is that the procedure is used to create fields at different levels of the message set. The only way i can i get this to work is to send in two references to the procedure. One reference is to the OutputRoot only and i use this to "create the lastchild". Once this has been done i use the second reference to navigate to the new field.

I would like to send in only one reference however which for example could be a reference (OutRef) to
OutputRoot.MRM.NestLevel1.NestLevel2.
By sending in this reference i could then populate OutRoot.MRM.NestLevel1.NestLevel2.Field1 As follows
CREATE LASTCHILD OutRef DOMAIN 'MRM' NAME 'Field1';
Set OutRef.Field1 = 'XYZ'

When i do this the message is rolled back to the failure queue with no meaningful error message shown.

Hopefully the above makes sense!

I am on WBIMB v5 CSD04.

Any insights gratefully accepted.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue May 24, 2005 6:15 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You don't need to use CREATE in most cases.

You don't need to apply the domain to a child element of a tree that already has the domain set.

I would just use your SET statement as is.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
JT
PostPosted: Tue May 24, 2005 7:04 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

If you choose to pursue the CREATE statement rather than the SET, as suggested by Jeff, see if adding the TYPE parameter fixes your problem:

Code:
CREATE LASTCHILD of OutRef DOMAIN 'MRM' TYPE Name NAME 'Field1';
Back to top
View user's profile Send private message
lanny boy
PostPosted: Tue May 24, 2005 7:57 am    Post subject: Reply with quote

Voyager

Joined: 24 Nov 2003
Posts: 79
Location: UK

Thanks Jeff and JT for your replies.

As Jeff suggested there was no need for all the CREATEs so that particular overkill issue is gone.
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 » ESQL References and Procedures
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.