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 » Retrieving MqGet timeout Value

Post new topic  Reply to topic
 Retrieving MqGet timeout Value « View previous topic :: View next topic » 
Author Message
divithshetty
PostPosted: Wed Oct 13, 2010 2:32 am    Post subject: Retrieving MqGet timeout Value Reply with quote

Novice

Joined: 12 Sep 2010
Posts: 13

Hi,

I have a flow in which we use MQGet node. Before creating the bar file we run a script which will modify the wait interval of the MQGEt node.
And whenever MQGet node timesout we throw a exception from the Throw node.

My requirement is to set the exception message text to the MQGet wait interval. I didnt find a way to retrieve the wait interval itself. Is it possible to do that?

Thanks in advance ..
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Oct 13, 2010 3:58 am    Post subject: Re: Retrieving MqGet timeout Value Reply with quote

Grand High Poobah

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

divithshetty wrote:
Before creating the bar file we run a script which will modify the wait interval of the MQGEt node.


Use this script to set the error message text at the same time as it modifies the wait interval.

The script is using mqsiapplybaroverride isn't it? The only supported way to change bar file values?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
divithshetty
PostPosted: Wed Oct 13, 2010 6:26 am    Post subject: Reply with quote

Novice

Joined: 12 Sep 2010
Posts: 13

the script is called against the ".msgflow" file. and it will search for timeInterval inside that file and sets it to appropriate value as i do not wanted to make any changes in the flow. After that bar file is created.

But now i want to do add the waiting time info in the exception message. which i cannot do from that script(or it gets really complicated) as there are lot of other throw nodes also.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Oct 13, 2010 6:36 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Use a user defined property. Use mqsiapplybaroverrides to set this on the bar file - not the msgflow file!

Use this in your Trace node pattern.

Robert is now your mother's brother.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Oct 13, 2010 6:55 am    Post subject: Reply with quote

Grand High Poobah

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

divithshetty wrote:
the script is called against the ".msgflow" file. and it will search for timeInterval inside that file and sets it to appropriate value as i do not wanted to make any changes in the flow. After that bar file is created.


I thought you might be doing something like this. Do not do this. Promote the property and set it in the bar file. Do not edit the msgflow with anything other than the Toolkit.

The same script which applies the change to the wait time can set a UDP, which in turn is used where you generate this message.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
divithshetty
PostPosted: Wed Oct 13, 2010 7:20 am    Post subject: Reply with quote

Novice

Joined: 12 Sep 2010
Posts: 13

Basically what you people say is ...Create a UDP and use it in the flow instead of directly editng the toolkt from some script. Is my understanding correct?

In that case i agree that i will be having the access to Wait interval of MQGEt. But if i dont use UDP and simply use the MQGet node's waitInterval property can i access the value of this field in the next node.?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Oct 13, 2010 7:29 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You can't in general access any node properties from ESQL or Java.

The only way you might possibly be able to access this value is if it is somehow set in the output tree by the MQGet node - but I don't believe it is. I've not double-checked, though.

You can do things to set the MQGet Wait Interval before the MQGet node. You can then access the same value used to set it after the MQGet node.
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 » Retrieving MqGet timeout Value
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.