Author |
Message
|
satyasheel15 |
Posted: Mon Jul 07, 2003 12:05 am Post subject: Question Regarding the ESQL Variable |
|
|
Voyager
Joined: 04 Mar 2003 Posts: 86
|
Question:
I have for example 100 messages in the INPUT QUEUE. Now I have to set up an COUNTER which will add in the TAG <TMACCTNO> in the COMPUTE NODE, everytime 100 messages passes through the COMPUTE NODE. This we need to keep track of how many messages from through the COMPUTE NODE and go to OUTPUT NODE and using that count we will track the INPUT AND OUTPUT MESSAGES.But what is happening that everytime COUNTER is RESET TO 1 whenever new messages come to COMPUTE NODE from INPUT NODE.
So please tell how to declare a STATIC TYPE OF VARIABLE IN THE ESQL CODE.
Please advise.
Regards Always
SATYASHEEL |
|
Back to top |
|
 |
Yanghui |
Posted: Mon Jul 07, 2003 12:44 am Post subject: |
|
|
Disciple
Joined: 08 May 2002 Posts: 151 Location: Dublin, Ireland
|
Hi, there,
Have you thought of using the PlugIn node for storing temporary data in memory (SupportPac IA91)? I think it might be useful in this scenario. Sorry I can't give you a certain answer since I never try it myself.
Regards
-Yanghui |
|
Back to top |
|
 |
mq_series |
Posted: Mon Jul 07, 2003 1:28 am Post subject: |
|
|
Apprentice
Joined: 29 Oct 2001 Posts: 30
|
Hi,
I think you can store the counter value in a database or some queue and check it from there.I don't know whether this is the only option.
Regards
rkv |
|
Back to top |
|
 |
satyasheel15 |
Posted: Mon Jul 07, 2003 1:29 am Post subject: Information regarding the ESQL Variable |
|
|
Voyager
Joined: 04 Mar 2003 Posts: 86
|
Hi,
Thanks for your reply. Couldn't we implement the without using the Java PlugIn NOde. Is there any solution available by using ESQL.
Please let me know.
Regards ALways
Satyasheel |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jul 07, 2003 6:03 am Post subject: Re: Information regarding the ESQL Variable |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
satyasheel15 wrote: |
Couldn't we implement the without using the Java PlugIn NOde. Is there any solution available by using ESQL.
|
Each time a message is read by WMQI, the associated message flow is started up from scratch (brand new).
This means that there is no built-in state kept BETWEEN messages with plain ESQL.
The three widely used options for storing this kind of state are to use a custom plug-in, a queue or a database. |
|
Back to top |
|
 |
JT |
Posted: Wed Jul 09, 2003 12:15 pm Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
|
Back to top |
|
 |
|