Posted: Thu Sep 23, 2010 5:17 am Post subject: MQGet Alternate
Newbie
Joined: 23 Sep 2010 Posts: 1
Hello, I'm trying to design an alternate approach for MQGet node due to its synchronous nature.
I'll store the copy of request message (leaving payload) in the temporary queue before writing to target application & on receiving the response message, I'll browse & read the corresponding header details based on the correlId from the temp queue. In this case, both the request & response message flows are asynchronous in nature & I'll be avoiding any thread tieup due to delay or no response from target system.
Will this approach is advisible or do we have any better alternate solution to retain the header details? Any of your suggestion is highly appreciated.
Note: Target application cannot return the received MQRFH2 header details.
Posted: Thu Sep 23, 2010 5:27 am Post subject: Re: MQGet Alternate
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
mqraju wrote:
Will this approach is advisible or do we have any better alternate solution to retain the header details?
This sounds pretty standard to me and i've seen it done else where.
My only comment would be to maybe consider using a database as the store in case you ever wished to cluster your brokers and have any broker be able to handle the response message (which may be useful if one of them went down)..... but this depends on your setup and whether this is / will be a requirement.
This may be a little more complex also as you will have to removed old states that are no longer needed (for example if no resposne was received)
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
Quote:
This may be a little more complex also as you will have to removed old states that are no longer needed (for example if no resposne was received)
From the package com.ibm.websphere.services.util you can use TimerTable class and ResponseTimeout class to set a configurable timeout that would remove the context you have stored. This has millisecond granularity. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
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