Posted: Fri May 24, 2013 6:50 pm Post subject: timeoutcontrol fileout and persistence
Yatiri
Joined: 19 May 2004 Posts: 667 Location: columbus,oh
I will try to explain my scenario to the best i can.
first msg comes in i open a file and put the msg in the file and keep it open. Simutaneously i put a timeout control msg to triggger once at midhnight. So the file will be closed at midnight
only for first msg i send timeout i store filename in a queue which i get using mqget. timeout is count -1 and interval set to 1 day. Now the timeout triggers eeryday.
i set timeout to persistent and filename msg to persistent to avoid files stuck in mqsitransit directory.
it all works ok. But if i amke code change and re-deploy i want a brand new timeout message to kick off but this doesnt happen becuase i chcek filename queue and decide its not the first msg and i dont send new timeout.
is there a way i can send new timeouts only in the case of re-deploys and not in the case of broker/flow/eg stop/starts.?
Posted: Fri May 24, 2013 10:20 pm Post subject: Re: timeoutcontrol fileout and persistence
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
Firstly, its a bit not clear on your flow design. It would be better if you can explain us the skeleton of your message flow and then the functionality. But based on what I understood,
paustin_ours wrote:
But if i amke code change and re-deploy i want a brand new timeout message to kick off but this doesnt happen becuase i chcek filename queue and decide its not the first msg and i dont send new timeout.
Cant your clear the MQ Queue when you make changes to your code and re-deploy? When you change the code and re-deploy, it becomes a new release and hence you should be having the access to empty the old queue.
paustin_ours wrote:
is there a way i can send new timeouts only in the case of re-deploys and not in the case of broker/flow/eg stop/starts.?
Why do you want to send new timeouts only in case of re-deploy and why not in FLOW/EG/BROKER restart?
Anyways, you can achieve this by using a combination of a EXTERNAL variable and SHARED variable by storing the value of Deployment Time in your EXTERNAL variable at the time of deployment.
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