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 » MQGet Alternate

Post new topic  Reply to topic
 MQGet Alternate « View previous topic :: View next topic » 
Author Message
mqraju
PostPosted: Thu Sep 23, 2010 5:17 am    Post subject: MQGet Alternate Reply with quote

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.

Thanks,
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Thu Sep 23, 2010 5:27 am    Post subject: Re: MQGet Alternate Reply with quote

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)
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Sep 23, 2010 5:38 am    Post subject: Reply with quote

Jedi Knight

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
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MQGet Alternate
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.