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 » How to get previous node name.

Post new topic  Reply to topic
 How to get previous node name. « View previous topic :: View next topic » 
Author Message
amiivas
PostPosted: Tue Feb 05, 2008 1:08 am    Post subject: How to get previous node name. Reply with quote

Apprentice

Joined: 14 Oct 2007
Posts: 44
Location: Texas, USA

Hi,
I need to get the previous node name.
The previous node can be a MBInput node , JCN or a subflow.
Till now I am successful in getting the current node name, Message flow name and name for input/output terminals.
Is there any way of getting or an API like getName()???

Thanks in advance,
Amit
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Feb 05, 2008 4:20 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I think you can't do this.

It's basically the same as asking a procedure to know the name of the procedure that called it.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Feb 05, 2008 4:22 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

If it was me (and it's not), I'd get the previous nodes to add a flag to the message indicating the source for your node to interogate.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Tue Feb 05, 2008 8:55 pm    Post subject: Re: How to get previous node name. Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

amiivas wrote:
Hi,
I need to get the previous node name.
The previous node can be a MBInput node , JCN or a subflow.
Till now I am successful in getting the current node name, Message flow name and name for input/output terminals.
Is there any way of getting or an API like getName()???

Thanks in advance,
Amit


You have got the current node name...

Store the same in env tree and access in next node ...
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
amiivas
PostPosted: Tue Feb 05, 2008 9:13 pm    Post subject: Re: How to get previous node name. Reply with quote

Apprentice

Joined: 14 Oct 2007
Posts: 44
Location: Texas, USA

Quote:


You have got the current node name...

Store the same in env tree and access in next node ...


I am doing it, if the previous node is JCN but what in case for if the previous node is a MQInput node or an input coming from a Subflow to the current node.

Thanks,
Amit
Back to top
View user's profile Send private message
Atomic
PostPosted: Tue Feb 05, 2008 9:52 pm    Post subject: Re: How to get previous node name. Reply with quote

Newbie

Joined: 17 Apr 2007
Posts: 4

I'm assuming that you need to know what flow/route was taken? if so why not put a JCN or ESQL in the flow to set a name/context.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Feb 06, 2008 1:25 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

If you are attempting to track the progress of a message through your flow, maybe there are better ways to do that. Maybe Tivoli have a tool for this?
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Feb 06, 2008 1:58 am    Post subject: Re: How to get previous node name. Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

amiivas wrote:
Quote:


You have got the current node name...

Store the same in env tree and access in next node ...


I am doing it, if the previous node is JCN but what in case for if the previous node is a MQInput node or an input coming from a Subflow to the current node.

Thanks,
Amit


If the previous "node" is a subflow then that's perfectly capable of storing data.

If the previous node is an MQInput then the stored data is the lack of stored data....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Wed Feb 06, 2008 2:07 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

also in that case one has to apply dirty logic to distinguish between subflow input and MQIinput... something like if its from subflow then previous node names wud be populated...
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
mqmatt
PostPosted: Thu Feb 07, 2008 5:58 am    Post subject: Reply with quote

Grand Master

Joined: 04 Aug 2004
Posts: 1213
Location: Hursley, UK

kimbert wrote:
If you are attempting to track the progress of a message through your flow, maybe there are better ways to do that.

User exits will do this for you; the API gives you loads of information as a message passes through a flow, including the node name.
See http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/topic/com.ibm.etools.mft.doc/ac02145_.htm
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 » How to get previous node name.
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.