|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Conext authority |
« View previous topic :: View next topic » |
Author |
Message
|
Gideon |
Posted: Thu Apr 03, 2014 9:46 am Post subject: Conext authority |
|
|
Chevalier
Joined: 18 Aug 2009 Posts: 403
|
|
Back to top |
|
 |
Vitor |
Posted: Thu Apr 03, 2014 9:48 am Post subject: Re: Conext authority |
|
|
 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 |
|
 |
Gideon |
Posted: Thu Apr 03, 2014 10:31 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Thu Apr 03, 2014 10:35 am Post subject: |
|
|
 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 |
|
 |
bruce2359 |
Posted: Thu Apr 03, 2014 12:09 pm Post subject: |
|
|
 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 |
|
 |
RogerLacroix |
Posted: Fri Apr 04, 2014 8:34 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|