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 » Timeout Control and Timeout Notification Node - Problem

Post new topic  Reply to topic
 Timeout Control and Timeout Notification Node - Problem « View previous topic :: View next topic » 
Author Message
GAKD
PostPosted: Tue Jul 07, 2015 12:04 pm    Post subject: Timeout Control and Timeout Notification Node - Problem Reply with quote

Novice

Joined: 25 Jun 2015
Posts: 14

I am not sure if I am understanding it right or confusing myself . Please help me out.

I have a requirement in which I have to validate the incoming message using validate node w.r.t a particular message set and immediately after validation I have to update the DB as validated and only after 2 secs delay I have to send the incoming message further for processing. So basically the requirement is to delay for 2 secs and propagate the message after the database update. I researched and found the concept of Timeout Control and Timeout Notification Node to use.

I am sending the message to the Timeoutcontrol Node by overwriting the local environment properties as mentioned below .
----------------overwriting the local environment property ------------------
DECLARE jump INTERVAL;
SET jump = INTERVAL '3' SECOND;
DECLARE start TIME;
SET start = CURRENT_TIME + jump;
SET OutputLocalEnvironment.TimeoutRequest.Action = 'SET';
SET OutputLocalEnvironment.TimeoutRequest.Identifier = 'TimeOutCntrl';
SET OutputLocalEnvironment.TimeoutRequest.StartDate = 'TODAY';
SET OutputLocalEnvironment.TimeoutRequest.StartTime = start;
-------------------------------------------------------------------------

After 3 sec delay the I can see in the debug mode the Timeout Notification Node is invoked but the message is propagated to the failiure terminal with the below error . Am I doing something wrong ?

ExceptionList
ParserException
File:CHARACTER:F:\build\slot1\S900_P\src\DataFlowEngine\MessageServices\ImbRootParser.cpp
Line:INTEGER:815
Function:CHARACTER:ImbRootParser::parseNextItem
Type:CHARACTER:ComIbmTimeoutNotificationNode
Name:CHARACTER:ETS_Routing_Flow#FCMComposite_1_9
Label:CHARACTER:ETS_Routing_Flow.Timeout Notification
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:2
Number:INTEGER:5902
Text:CHARACTER:Exception whilst parsing
Insert
Type:INTEGER:5
Text:CHARACTER:Root
Insert
Type:INTEGER:5
Text:CHARACTER:MQMD
Insert
Type:INTEGER:5
Text:CHARACTER:Null Buffer
ParserException
File:CHARACTER:F:\build\slot1\S900_P\src\DataFlowEngine\MQLibrary\linklib\ImbMqmdParser.cpp
Line:INTEGER:143
Function:CHARACTER:ImbMqmdParser::refreshElementsFromBitStream
Type:CHARACTER:ComIbmTimeoutNotificationNode
Name:CHARACTER:ETS_Routing_Flow#FCMComposite_1_9
Label:CHARACTER:ETS_Routing_Flow.Timeout Notification
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2162
Text:CHARACTER:Structure id mismatch at offset
Insert
Type:INTEGER:2
Text:CHARACTER:0
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Jul 07, 2015 12:18 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

http://www.ibm.com/developerworks/websphere/library/techarticles/0603_schutz/0603_schutz.html
Back to top
View user's profile Send private message
nelson
PostPosted: Tue Jul 07, 2015 1:47 pm    Post subject: Reply with quote

Partisan

Joined: 02 Oct 2012
Posts: 313

I should try the Toolkit Timeout sample.

Also, remember:

Code:
SET start = CURRENT_TIME + jump;
...
SET OutputLocalEnvironment.TimeoutRequest.StartDate = 'TODAY';
SET OutputLocalEnvironment.TimeoutRequest.StartTime = start;


could set a start time in the past... for instance.. 23:59:59 + 5 seconds = 00:00:04 (TODAY 00:00:04 < TODAY 23:59:59).
Back to top
View user's profile Send private message
GAKD
PostPosted: Wed Jul 08, 2015 7:21 am    Post subject: Found functionality SLEEP--(--DurationExpression--)--------- Reply with quote

Novice

Joined: 25 Jun 2015
Posts: 14

Using SLEEP--(--DurationExpression--)----------------------------->< to make the thread sleep for 3 secs and returning it back. Its working great.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Timeout Control and Timeout Notification Node - Problem
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.