|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Setting MQMD Userid on MQPUT |
« View previous topic :: View next topic » |
Author |
Message
|
72dolfan |
Posted: Mon May 11, 2009 6:27 am Post subject: Setting MQMD Userid on MQPUT |
|
|
Acolyte
Joined: 02 May 2006 Posts: 53
|
Hi All,
We're building a web utility that allows users to unload and reload messages from their queues. When the message if pulled from their queue, it is being stored in DB2, inclusing info from the MQMD. When they reload the message using our web utility, the message, and MQMD info is put back onto the queue.
However, we want to set the MQMD Userid to the user signed on to our Web Utility instead of letting MQ set it to our Web Utility ID. I've been reading Context;
MQOO_SET_IDENTITY_CONTEXT
MQPMO_SET_IDENTITY_CONTEXT
MQOO_PASS_ALL_CONTEXT
MQPMO_PASS_ALL_CONTEXT
And it doesn't seem that this will work for us. As I understand it, using Set Identity, the queue manager does not set any of the other fields other than what I've specified.
Do you know how we can assign the MQMD userid to be the signed on user instead of MQ assigning the putting application?
Thanks!!!!! |
|
Back to top |
|
 |
Vitor |
Posted: Mon May 11, 2009 6:38 am Post subject: Re: Setting MQMD Userid on MQPUT |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
72dolfan wrote: |
As I understand it, using Set Identity, the queue manager does not set any of the other fields other than what I've specified. |
But as you've got the original MQMD, why is this an issue?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
72dolfan |
Posted: Mon May 11, 2009 6:43 am Post subject: Re: Setting MQMD Userid on MQPUT |
|
|
Acolyte
Joined: 02 May 2006 Posts: 53
|
Vitor wrote: |
72dolfan wrote: |
As I understand it, using Set Identity, the queue manager does not set any of the other fields other than what I've specified. |
But as you've got the original MQMD, why is this an issue?  |
When the web utility issues the put, MQ is assigning the Web Utility's ID as the User Identifier in the Message Descriptor. Also, the user who unloaded the message may not be the same user that reloads it. |
|
Back to top |
|
 |
Vitor |
Posted: Mon May 11, 2009 7:12 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
So set the identity.
I was enquiring as to your original comment:
Quote: |
it doesn't seem that this will work for us |
_________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
72dolfan |
Posted: Mon May 11, 2009 7:31 am Post subject: |
|
|
Acolyte
Joined: 02 May 2006 Posts: 53
|
Vitor wrote: |
So set the identity.
I was enquiring as to your original comment:
Quote: |
it doesn't seem that this will work for us |
|
Do you purposely choose to not be helpful? I've read several of your posts on this forum and it seems if you don't really wish to help, you would just stop replying. |
|
Back to top |
|
 |
Vitor |
Posted: Mon May 11, 2009 7:40 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
72dolfan wrote: |
Do you purposely choose to not be helpful? |
No, if I choose to be unhelpful I do something completely different.
72dolfan wrote: |
you would just stop replying. |
Sometimes the temptation to do just that is very strong.
The point I was getting at here is I don't understand why, in the context of your post, the SET_IDENTITY option is unsuitible for you. It seems clear that you're trying to deliberately set the id from that which was used to originally put the message to that used to reload the message, and you've identified that using this option will cause the queue manager not to set any other identify fields.
But, to return to my original question which has seems to have irritated you so, why can you not set these other fields from the original MQMD stored with the message? Clearly you can't, or you wouldn't have posted, but I don't see the issue and was looking for some additional clarification from yourself before advising you further.
Oh well. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
recallsunny |
Posted: Wed May 13, 2009 1:12 pm Post subject: |
|
|
 Disciple
Joined: 15 Jun 2005 Posts: 163 Location: Massachusetts
|
Presuming you're using Java with MQ in your Web utility, you can set the userID via com.ibm.mq.MQEnvironment
MQEnvironment.userID = "SUNNY"; |
|
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
|
|
|
|