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 set User ID in MQMD through java(JMS)?

Post new topic  Reply to topic
 How to set User ID in MQMD through java(JMS)? « View previous topic :: View next topic » 
Author Message
shrinivasp
PostPosted: Sat Sep 07, 2002 5:02 am    Post subject: How to set User ID in MQMD through java(JMS)? Reply with quote

Newbie

Joined: 17 Nov 2001
Posts: 2
Location: Cognizant

I have a requirement where in I need to set the User ID through program. I think I cant use the setJMSXUserID, it throws runtime exception. Is it possoble to set ?

thanks,
shree
Back to top
View user's profile Send private message MSN Messenger
maxis
PostPosted: Mon Sep 09, 2002 7:17 am    Post subject: Reply with quote

Centurion

Joined: 25 Jun 2002
Posts: 144

i dont its possible ..

there are only specific fields, which u can set. Rest are system assigned.


M
Back to top
View user's profile Send private message
dotjas
PostPosted: Mon Sep 09, 2002 8:14 am    Post subject: Reply with quote

Novice

Joined: 28 Apr 2002
Posts: 14
Location: Madison, WI

The IBM, "Using Java" document states the following:

Message header field references are restricted to JMSDeliveryMode,
JMSPriority, JMSMessageID, JMSTimestamp, JMSCorrelationID, and JMSType. JMSMessageID, JMSTimestamp, JMSCorrelationID, and JMSType values may be null and if so are treated as a NULL value.

So, you cannot manipulate the UserId like you have been trying to do. You may be able to set the Alternate Userid field in the MD and then potentially try to use the open/get option to use that UserId.
_________________
Jim Schuchardt
Principal Consultant
MQ Certified Specialist
Back to top
View user's profile Send private message Send e-mail
ram_2000
PostPosted: Thu Sep 12, 2002 8:35 pm    Post subject: Reply with quote

Novice

Joined: 29 Mar 2002
Posts: 12
Location: Vancouver, Canada

I think you can set the user id field.....

Try this...when you create the connection from the connection factory (say QueueConnectionFactory), use the createQueueConnection() method where you can specify the id and password....

This usually sets the userId for all the messages with this Id...I don't think you can set the user id field in the message otherwise.

Hope this helps.
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 set User ID in MQMD through java(JMS)?
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.