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 » IBM MQ Java / JMS » Capture failure message on HTTPInput node.

Post new topic  Reply to topic
 Capture failure message on HTTPInput node. « View previous topic :: View next topic » 
Author Message
rajparekh08
PostPosted: Mon Sep 21, 2009 1:50 am    Post subject: Capture failure message on HTTPInput node. Reply with quote

Acolyte

Joined: 21 Sep 2009
Posts: 58
Location: India- Bagalore

Hi!,
I need to validate the incoming message in a HTTPInput node against a schema. If the message is not valid, I want to capture the Request message, add the fault code and send it back to the requester.

The problem I am facing is that, the message gets discarded. So is there any way to capture the message if a exception is generated in a HTTPInput node??and send it back to the originator along with the fault code?
thnx
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Vitor
PostPosted: Mon Sep 21, 2009 4:21 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Don't post the same question multiple times!

As to your question, what does the documentation say? What have you tried? What happened? Why did you thinking posting 3 times was a good idea?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
rajparekh08
PostPosted: Wed Sep 23, 2009 9:27 pm    Post subject: Reply with quote

Acolyte

Joined: 21 Sep 2009
Posts: 58
Location: India- Bagalore

Vitor wrote:
Don't post the same question multiple times!

As to your question, what does the documentation say? What have you tried? What happened? Why did you thinking posting 3 times was a good idea?


This is what I got from documentation:
If you have connected the Failure terminal, you are responsible for handling the error in the fail flow. The broker creates a new ExceptionList to represent the error and this is propagated to the Failure terminal as part of the message tree, but neither the node nor the broker provide any further failure processing.

So is there a way to capture the message?
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Luke
PostPosted: Thu Sep 24, 2009 12:23 am    Post subject: Reply with quote

Centurion

Joined: 10 Nov 2008
Posts: 128
Location: UK

rajparekh08 wrote:
So is there a way to capture the message?

If you can't do it from the HTTPInput node (I've never tried it, so not sure if it's possible), could you remove the validation from that node and use a Validate node instead?

That way you could save the input message in Environment, Validate, catch any validation errors, retrieve message from Environment, add fault code, send back to client ... ?
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Thu Sep 24, 2009 12:33 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi rajparekh08,

What do you mean by the message gets discarded ?
At the failure terminal you should have your request message and the exceptionlist...please clarify..

Regards.
Back to top
View user's profile Send private message Send e-mail
rekarm01
PostPosted: Thu Sep 24, 2009 2:04 am    Post subject: Re: Capture failure message on HTTPInput node. Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

rajparekh08 wrote:
Vitor wrote:
Don't post the same question multiple times! ... Why did you thinking posting 3 times was a good idea?

Three posts, and not once to the correct forum.

rajparekh08 wrote:
Vitor wrote:
As to your question, what does the documentation say?

rajparekh08 wrote:
This is what I got from documentation:
If you have connected the Failure terminal, you are responsible for handling the error in the fail flow. The broker creates a new ExceptionList to represent the error and this is propagated to the Failure terminal as part of the message tree, but neither the node nor the broker provide any further failure processing.

OK ... So, what does the documentation for the HTTPInput node say?

rajparekh08 wrote:
Vitor wrote:
What have you tried? What happened?

How are the HTTPInput node properties set (message domain/set/type/format, parse timing, validate, failure action, etc.), to ensure that message validation errors go to the Failure terminal? Is there anything attached to the Catch terminal? What does the usertrace indicate?

rajparekh08 wrote:
So is there a way to capture the message?

Yes, there is. To start with, verify that the relevant HTTPInput node properties are set as needed.
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 » IBM MQ Java / JMS » Capture failure message on HTTPInput node.
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.