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 » Handling HTTP timeout

Post new topic  Reply to topic
 Handling HTTP timeout « View previous topic :: View next topic » 
Author Message
ktg
PostPosted: Thu Jun 28, 2012 2:23 am    Post subject: Handling HTTP timeout Reply with quote

Centurion

Joined: 09 Jan 2006
Posts: 138
Location: India

Hi All,

We have a HTTP request flow. Maximum client wait period is set to 2 seconds for the HTTP input node. If the processing is not getting completed in 2 seconds, the HTTP input node's timeout terminal is receiving timeout message. The timeout message will not be having any information about the original request message. So, we will not be knowing which request has been timed out. So, wont be able to send appropriate error response to the initial requester. How to handle this case? Please, advise.

TIA.

Regards,
Kalpana
Back to top
View user's profile Send private message AIM Address
mqjeff
PostPosted: Thu Jun 28, 2012 3:15 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The timeout terminal gets fired in a new instance of the message flow, because one of the reasons the terminal might get fired is because the main instance of the message flow has died completely or otherwise is unresponsive or stuck.

You can use a SHARED variable to hold state about the main instance of the message flow. This will then be available in the timeout - but you have to code it so you can correlate the right state with the timeout terminal that's fired. That is, so you don't send a timeout response with the wrong information.

This won't necessarily let you know the real cause for the timeout, however. but it should get you closer.

Make a list of the pieces of information you really need available in case of a timeout. It might not be as much as you think it is.
Back to top
View user's profile Send private message
mgk
PostPosted: Thu Jun 28, 2012 3:40 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1639

Actually, if you put a trace node into your flow after the TimeOut terminal and trace $LocalEnvironment you will see some information about the timed out message as well as a BLOB version of the timed out message...

Kind Regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
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 » Handling HTTP timeout
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.