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 » Properties from test flow to main flow

Post new topic  Reply to topic
 Properties from test flow to main flow « View previous topic :: View next topic » 
Author Message
ruchir123
PostPosted: Thu Jan 19, 2012 10:02 am    Post subject: Properties from test flow to main flow Reply with quote

Acolyte

Joined: 04 Jan 2012
Posts: 58

Hi All,

I have a scenario in which i have 2 flows.

1st Flow :- SOAP Input node -> Compute Node -> SOAP Request node -> Compute Node -> SOAP Reply Node.

2nd Flow :- SOAP Input node -> Compute Node -> SOAP Reply Node.


In my flow i m calling 2nd flow from my 1st flow. In my 2nd flow i m getting an exception and i want to pass this exception to 1st flow so that i can handle it with my Error Handling code.
But the problem is that when my flow comes back from 2nd flow to 1st flow my exception list is not populated in the message.

So please tell i am doing anything wrong in this or i need to set any properties for that.

Please suggest
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Jan 19, 2012 10:15 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Read in the InfoCentre about the ExceptionList tree.

-or-

Take the WM663 training class.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Esa
PostPosted: Thu Jan 19, 2012 10:20 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

The scope of an ExceptionList is at the maximum the thread that processes one input message. You cannot pass it to another thread. Or you can, with shared memory,if the flows are running on the same execution group. You need to implement it with java. Or with ESQL, but then you will have to put both flows in the same flow file.

You would end up implementing a Singleton with a Hashtable that is using MsgId's as keys, for example. And some housekeeping code for memery management. Not impossible, I have implemented equivalent gadgets myself.

Today, a bit older and perhaps wiser, too, I would start by examining more standard solutions. Like serializing the ExceptionList under the details element of a SOAPFault that you return to the first flow.

Well, that won't be automatically transformed into an exception in the first flow. If you need to do something more in your exception handler, like audit logging, you will have to copy the Fault message into Environment and throw a user exception that would inform your exception handler that there is a Fault message available. For example.

And you need to read the InfoCenter a lot. I read it every day. It's relaxing.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Jan 19, 2012 12:17 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Esa wrote:

And you need to read the InfoCenter a lot. I read it every day. It's relaxing.


I always knew you Finns were a strange people. I can't be alone in finding the InfoCentre immensly frustrating especially when you keep going round an round in circles.
I always preferred the PDF's. At least you could search an individual PDF.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jan 19, 2012 12:33 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

smdavies99 wrote:
Esa wrote:

And you need to read the InfoCenter a lot. I read it every day. It's relaxing.


I always knew you Finns were a strange people.

I'm sure this is true, but
smdavies99 wrote:
I can't be alone in finding the InfoCentre immensly frustrating especially when you keep going round an round in circles.
Well, if you did read it every day, this might not happen...
smdavies99 wrote:
I always preferred the PDF's. At least you could search an individual PDF.

I always hated the PDFs, because you could always had to have six of them open to find the full answer to what you needed. And you could only search them one at at time.

And you can create a scope to limit the search in the InfoCenter... Granted, it's only got a limited resolution, but you can still isolate what you want to look into.
Back to top
View user's profile Send private message
joebuckeye
PostPosted: Thu Jan 19, 2012 12:40 pm    Post subject: Reply with quote

Partisan

Joined: 24 Aug 2007
Posts: 365
Location: Columbus, OH

smdavies99 wrote:
I can't be alone in finding the InfoCentre immensly frustrating especially when you keep going round an round in circles.


I do also but I passed it off as a British - American writing style difference thing.
Back to top
View user's profile Send private message
ruchir123
PostPosted: Thu Jan 19, 2012 10:48 pm    Post subject: Reply with quote

Acolyte

Joined: 04 Jan 2012
Posts: 58

Hi All,

Thanks for your replies.

I will look for my solution according to your suggetion.

Esa : Thanks for your valueable information.
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 » Properties from test flow to main flow
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.