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 » Design problem

Post new topic  Reply to topic
 Design problem « View previous topic :: View next topic » 
Author Message
harelmoshe1
PostPosted: Wed Mar 22, 2006 5:58 am    Post subject: Design problem Reply with quote

Apprentice

Joined: 29 Dec 2005
Posts: 41

Hey, i have to write a a bunch of flows, all of the form:

HTTPInput -> Compute -> HTTPRequest -> Compute

I want to handle HTTP errors in a generic way - an error-handling subflow that will save the XML which failed to be sent in the HTTPRequest to an MQ queue, and later will try to resend it again, something like:

MQInput -> HTTPRequest

the problem is that i can't hard-code the URL to which the request failed and store it in the error-handling subflow somewhere, since it changes from flow to flow - so i lose the generic handling by having to specifically write an error-handling flow to each of the original flows i described in the beginning. Does anyone have an idea how to generically handle this scenarion ?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Mar 22, 2006 8:07 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

I'm not sure this can be handled in an automated way as the automated request did FAIL?

Anyway have you tried adding the Exception List to the MF and when saving/picking up routing according to the exceptions thrown ?

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
harelmoshe1
PostPosted: Thu Mar 23, 2006 4:25 am    Post subject: Reply with quote

Apprentice

Joined: 29 Dec 2005
Posts: 41

That's one thing i had in mind, but it still can't help me - if i'll route the exception-tree to the generic flow i want to use, it would still be unable to extract the URL to which the sending failed and attempt to resend it since it doesn't appear anywhere after the error occured...
Back to top
View user's profile Send private message
mgk
PostPosted: Thu Mar 23, 2006 4:55 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

The HTTP Request node allows the destination URL on the node to be overridden with a setting in the LocalEnvironemnt such as:

Code:
SET OutputLocalEnvironment.Destination.HTTP.RequestURL = 'http://127.0.0.1:80/';


Therefore, you could design a single flow that implemented this in the first compute node dynamically. Then, in the subflow you could use this information and store it with the input message (maybe in a RFH2 header) and use in in the error handling flow.

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
harelmoshe1
PostPosted: Thu Mar 23, 2006 5:21 am    Post subject: Reply with quote

Apprentice

Joined: 29 Dec 2005
Posts: 41

Thanks !
That's exactly what iv'e been looking for.

Is there any place where i can find all the settings which can be overridden for various nodes ?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Mar 23, 2006 5:53 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

harelmoshe1 wrote:
Is there any place where i can find all the settings which can be overridden for various nodes ?


You mean, aside from the documentation for each individual node?

No, I don't believe there is a master list of node properties that can be replaced with code settings.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
harelmoshe1
PostPosted: Mon Mar 27, 2006 3:56 am    Post subject: Reply with quote

Apprentice

Joined: 29 Dec 2005
Posts: 41

Should i uncheck 'Generate HTTP header from input' ? seems the address in not taken well from OutputLocalEnvironment.Destination.HTTP.RequestURL or there's something else i have to check/uncheck in the node...

It works only when i set the address in the node's properties... any idea ?
Back to top
View user's profile Send private message
mgk
PostPosted: Mon Mar 27, 2006 6:29 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

The Local Environment setting is independent of the GenerateDefaultHeaders property. At a guess you have not changed the ComputeMode property of the preceding compute node to inlcude the LocalEnvironment, so the node is using the default (which is the node's setting).

To make sure, place a Trace Node immediately before the Request Node that traces the LocalEnvrionment and make sure your setting is there in the trace output. If it is, and this is still not working for you for some other reason, then post the trace output here.

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
harelmoshe1
PostPosted: Mon Mar 27, 2006 8:26 am    Post subject: Reply with quote

Apprentice

Joined: 29 Dec 2005
Posts: 41

Thanks, right guess !
I never had in that in mind...
Now it works perfect.
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 » Design 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.