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 » MQRC_JSSE_ERROR

Post new topic  Reply to topic
 MQRC_JSSE_ERROR « View previous topic :: View next topic » 
Author Message
Jeroen20
PostPosted: Wed Sep 01, 2021 1:54 am    Post subject: MQRC_JSSE_ERROR Reply with quote

Newbie

Joined: 01 Sep 2021
Posts: 1

Code:

mqht.put(CMQC.CHANNEL_PROPERTY, mqConfiguration.getChannel());
mqht.put(CMQC.HOST_NAME_PROPERTY, mqConfiguration.getHost());
mqht.put(CMQC.PORT_PROPERTY, mqConfiguration.getPort());
mqht.put(CMQC.USER_ID_PROPERTY, mqConfiguration.getUsername());
mqht.put(CMQC.PASSWORD_PROPERTY, mqConfiguration.getPassword());


Code:

qMgr = new MQQueueManager(queueName, mqht);
System.out.println("Successfully connected to " + qMgr.getName());


I keep getting this error:

Code:
MQJE001: Completion Code '2', Reason '2397'.


Am I missing any properties?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Sep 01, 2021 4:29 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

What about keystore, truststore (on command line) and ciphersuite ? or a CCDT URL ??
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
RogerLacroix
PostPosted: Wed Sep 01, 2021 10:32 am    Post subject: Reply with quote

Jedi Knight

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

Hummm. That looks like a piece of one of my published sample Java/MQ programs.

If you want to use SSL/TLS then you need several more properties. Have a look at MyMQ.java file from Universal File Mover (UFM) open source project.

i.e.
Code:
if (mqo.cipherSuiteName != null)
   mqht.put(CMQC.SSL_CIPHER_SUITE_PROPERTY, mqo.cipherSuiteName);

if (mqo.distinguishedName != null)
   mqht.put(CMQC.SSL_PEER_NAME_PROPERTY, mqo.distinguishedName);

if (mqo.trustedStore != null)
   System.setProperty("javax.net.ssl.trustStore", mqo.trustedStore);

if (mqo.trustedStorePasswd != null)
   System.setProperty("javax.net.ssl.trustStorePassword", mqo.trustedStorePasswd);

if (mqo.keyStore != null)
   System.setProperty("javax.net.ssl.keyStore", mqo.keyStore);

if (mqo.keyStorePasswd != null)
   System.setProperty("javax.net.ssl.keyStorePassword", mqo.keyStorePasswd);


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 » MQRC_JSSE_ERROR
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.