|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to use AlternateUserid via MQJMS API |
« View previous topic :: View next topic » |
Author |
Message
|
abhay09 |
Posted: Fri Aug 25, 2017 4:08 am Post subject: How to use AlternateUserid via MQJMS API |
|
|
Acolyte
Joined: 31 May 2016 Posts: 66
|
Hi Guys,
I am using MQJMS API in my application for enqueue and dequeue messages from MQ queues.
I want to understand 1 thing about alternate userid.
in MQ Java API, we can pass alternate userid while accessing queue.
public MQQueue accessQueue(java.lang.String queueName, int openOptionsArg,
java.lang.String queueManagerName,
java.lang.String dynamicQueueName,
java.lang.String alternateUserIdArg)
throws MQException.
Now, how can I use alternateUserIdArg in MQJMS API?
In MqJMS Api, we can provide username/password while creating connection
createXAConnection(java.lang.String userid, java.lang.String password)
How can I pass alternateUserIdArg or how can I use alternateUserIdArg in MQJMS API?
Can i use alternateUserIdArg while creating com.ibm.mqjms.MQQueue or consumer/producer?
Please suggest.
Any help will be appreciated. |
|
Back to top |
|
 |
hughson |
Posted: Fri Aug 25, 2017 2:55 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
I don't think you can. I don't think it was part of the JMS Spec. I'm not 100% certain, but that's what I recall.
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
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
|
|
|
|