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 » JMS Bindings file with authentication

Post new topic  Reply to topic
 JMS Bindings file with authentication « View previous topic :: View next topic » 
Author Message
Armageddon123
PostPosted: Mon Mar 12, 2018 8:04 pm    Post subject: JMS Bindings file with authentication Reply with quote

Acolyte

Joined: 11 Feb 2014
Posts: 61

Hi All

Can you please throw some light on how can we add username/password into the JMS Bindings file.
From the link
https://www.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.ref.dev.doc/q111800_.htm

there is no such property like username/password which can be added to the JMS bindings file directly. Is there any workaround on the same and at the same time continue to use only the bindings file and no other speciifc Java code for the same.

Thanks
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Tue Mar 13, 2018 9:15 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3251
Location: London, ON Canada

They are not there because from a security perspective, you don't put user credentials in the binding file that anyone can read & use!!

The correct way is to specify the credentials on the createQueueConnection method.

Code:
QueueConnectionFactory qcf = (QueueConnectionFactory) ctx.lookup("myQCF");
QueueConnection qc = qcf.createQueueConnection(userID, password);


Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS Bindings file with authentication
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.