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 » RETURN doubt.

Post new topic  Reply to topic
 RETURN doubt. « View previous topic :: View next topic » 
Author Message
msgbrkr
PostPosted: Tue Jun 29, 2004 4:53 pm    Post subject: RETURN doubt. Reply with quote

Newbie

Joined: 21 Apr 2004
Posts: 9

Hi all,

This is a very basic query.
The esql doc says that "When used in a function, the RETURN statement causes execution of that function to cease and control to be returned to the calling expression."

Was wondering if i do a RETURN FALSE in the Main() Function of a Compute Node where is the control returned.Does it return to the Compute Node thru which it was called??


Also one more query if i have something like:

Input Node -->Compute--> Output Node

And the esql as something:

--Main() Function
Call MyProcedure();
RETURN FALSE;
--END OF MAIN()

---Procedure MyProcedure()
........Some esql operations....
PROPAGATE;
--End of MyProcedure()

What i see from this esql, as it should the msg is PROPAGATE; but was curious what happens when the flow encounters the RETURN FALSE in the Main() function.


Thanks in advance,
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jun 29, 2004 4:57 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The message should propagate, as you say. Control will follow the message further down stream, and then return back to your ESQL when the message has been processed.

Then control will go... nowhere.

This is actually what you're supposed to do when using propogate.

It prevents the system from propogating an empty message tree.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
msgbrkr
PostPosted: Tue Jun 29, 2004 5:02 pm    Post subject: Reply with quote

Newbie

Joined: 21 Apr 2004
Posts: 9

thanks jeff for your prompt reply.
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 » RETURN doubt.
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.