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 IndexIBM MQ Java / JMSHow to use AlternateUserid via MQJMS API

Post new topicReply to topic
How to use AlternateUserid via MQJMS API View previous topic :: View next topic
Author Message
abhay09
PostPosted: Fri Aug 25, 2017 4:08 am Post subject: How to use AlternateUserid via MQJMS API Reply with quote

Acolyte

Joined: 31 May 2016
Posts: 60

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
View user's profile Send private message
hughson
PostPosted: Fri Aug 25, 2017 2:55 pm Post subject: Reply with quote

Shaman

Joined: 09 May 2013
Posts: 730
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
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Java / JMSHow to use AlternateUserid via MQJMS API
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.