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 » IBM MQ Java / JMS » How to specify the userid for the message

Post new topic  Reply to topic
 How to specify the userid for the message « View previous topic :: View next topic » 
Author Message
tapak
PostPosted: Mon Jul 24, 2006 7:30 am    Post subject: How to specify the userid for the message Reply with quote

Centurion

Joined: 26 Oct 2005
Posts: 149
Location: Hartford,CT

Any idea how to specify the userid for the message while putting message to a queue . I specified my individual userid while creating the connection to the queue manager . Channel security exit Secadmin accepts my userid as it is added to the secadmin.txt .

But still the Useridentifier property of the message is displayed as mqm . Is it an expected behaviour . I tried specifying putmsg.userId = myIndividualuserid also where putmsg is the MQMessage object . And specified MQC.MQOO_ALTERNATE_USER_AUTHORITY in the putq openOptions .

Any thoughts ?
Back to top
View user's profile Send private message
tapak
PostPosted: Tue Jul 25, 2006 6:04 am    Post subject: Reply with quote

Centurion

Joined: 26 Oct 2005
Posts: 149
Location: Hartford,CT

Is the question is not clear ?

To clarify , I try to put a message by specifying the individual userid while opening the connection . But when I browse the message , the user identifier is displayed as mqm instead of my individual userid . Any thoughts ?
Back to top
View user's profile Send private message
msukup
PostPosted: Tue Jul 25, 2006 7:50 am    Post subject: Reply with quote

Acolyte

Joined: 11 Feb 2002
Posts: 56

are you passing the MQC.MQPMO_SET_ALL_CONTEXT option in?
Back to top
View user's profile Send private message MSN Messenger
tapak
PostPosted: Tue Jul 25, 2006 11:32 am    Post subject: Reply with quote

Centurion

Joined: 26 Oct 2005
Posts: 149
Location: Hartford,CT

That helped with the userid problem . But it removed the automatic setting of PutDate , PutTime and Application Name in the Message Header . I set all this values in my application code .

Thanks for your inputs .
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Jul 25, 2006 11:40 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

MQxxx_SET_IDENTITY_CONTEXT might be what you want:

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzal.doc/context.htm
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
tapak
PostPosted: Thu Jul 27, 2006 7:58 am    Post subject: Reply with quote

Centurion

Joined: 26 Oct 2005
Posts: 149
Location: Hartford,CT

Wayne ,

Thank you for the info . But I decided to use SET ALL CONTEXT as I am planning to put my Application Name instead of Websphere MQ Client for Java to the Origin Context .
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » How to specify the userid for the message
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.