|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to set User ID in MQMD through java(JMS)? |
« View previous topic :: View next topic » |
Author |
Message
|
shrinivasp |
Posted: Sat Sep 07, 2002 5:02 am Post subject: How to set User ID in MQMD through java(JMS)? |
|
|
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 |
|
 |
maxis |
Posted: Mon Sep 09, 2002 7:17 am Post subject: |
|
|
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 |
|
 |
dotjas |
Posted: Mon Sep 09, 2002 8:14 am Post subject: |
|
|
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 |
|
 |
ram_2000 |
Posted: Thu Sep 12, 2002 8:35 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|