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 » General IBM MQ Support » Conext authority

Post new topic  Reply to topic
 Conext authority « View previous topic :: View next topic » 
Author Message
Gideon
PostPosted: Thu Apr 03, 2014 9:46 am    Post subject: Conext authority Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

I am reading this site:

https://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.amqzag.doc%2Ffa15980_.htm

which says:

Code:
passall    Pass all context on the specified queue. All the context fields are copied from the original request.


Where exactly is the context passed to. I assume the context data within the MQMD of the message will be passed somewhere, but I do not understand from the documentation where it is passed to

Thanks for your help
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu Apr 03, 2014 9:48 am    Post subject: Re: Conext authority Reply with quote

Grand High Poobah

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

Gideon wrote:
Where exactly is the context passed to.


The new message
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Gideon
PostPosted: Thu Apr 03, 2014 10:31 am    Post subject: Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

Yes, I assumed it was a new message, but do not understand the context (sorry for the use of that word).

If you have received a message and are returning a different message, how does the new message get the context from the original message.

Could someone please give me an example of this

(I aplogize for my lack of clarity in my previous post)

Thanks
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu Apr 03, 2014 10:35 am    Post subject: Reply with quote

Grand High Poobah

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

Gideon wrote:
If you have received a message and are returning a different message, how does the new message get the context from the original message.


Because you've set the context to be passed. Consider this an extension of your other question and a similar use case; if you have a routing application you may want the context of the message to reflect the originating application not the routing one.

You probably (and I say probably) wouldn't use this for a reply to a request
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Apr 03, 2014 12:09 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Every message produced contains a message descriptor header (MQMD) and your application data. Among other information about the message, the MQMD contains context fields that describe the who and what created the message, including username, date/time, application name. The MQMD is constructed by both the queue-manager and by the application.

Usually, there is a relationship between the inbound request message consumed by a program, and the outbound reply message produced by the same application in response to the request.

The replying application can specify when it MQOPENs the input queue that the queue-manager is to save context fields so that they can be propagated to the reply message. The app would specify at MQPUT a MQPMO to pass context fields.

Please do some research on MQMD fields. Begin here http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzak.doc%2Ffr13040_.htm
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Fri Apr 04, 2014 8:34 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Gideon wrote:
Yes, I assumed it was a new message, but do not understand the context (sorry for the use of that word).

If you have received a message and are returning a different message, how does the new message get the context from the original message.

Could someone please give me an example of this

Go look up MMX (Message Multiplexer). It makes use of MQOO_SAVE_ALL_CONTEXT and MQOO_PASS_ALL_CONTEXT parameters.

MMX clones the messages from a single input queue to many output queues. If you want to make exact clone of both MQMD and the message data then you need to use context options, otherwise, when your program outputs the message it will have new values for MQMD fields.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Conext authority
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.