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 » MQ Client configuration file with WebSphere MQ Java client

Post new topic  Reply to topic
 MQ Client configuration file with WebSphere MQ Java client « View previous topic :: View next topic » 
Author Message
nab054371
PostPosted: Thu Mar 17, 2011 4:07 pm    Post subject: MQ Client configuration file with WebSphere MQ Java client Reply with quote

Disciple

Joined: 15 Nov 2006
Posts: 173

Hi,

So I am working on MQ V7.0.1.3 on Windows paltform. In looking through the WebSphere MQ documentation for 7.0.1.0 and it appears that SSL configuration between MQ client and MQ Server can be accomplished using the MQ client configuration file without having to make any code changes at the client end. Now just to be clear, my MQ JAVA client does not use SSL as of today. I have since configured the MQ client configuration file as below:

#* Module Name: mqclient.ini *#
#* Type : WebSphere MQ client configuration file *#
# Function : Define the configuration of a client *#
#* *#
#*******************************************************************#
#* Notes : *#
#* 1) This file defines the configuration of a client *#
#* *#
#*******************************************************************#

SSL:
AltGSKit=NO
OCSPAuthentication=OPTIONAL
OCSPCheckExtensions=NO
SSLFipsRequired=NO
SSLKeyRepository="C:\\MQClientSSL\\key"
SSLKeyResetCount=0
StrictBasicConstraintsValidation=NO
javax.net.ssl.trustStore="C:\\MQClientSSL\\key"
javax.net.ssl.keyStore="C:\\MQClientSSL\\key"
javax.net.ssl.keyStorePassword="xxxxxxxx"


I know the documentation does not make any references to javax, however that was my desperate attempt at getting it to work. It looks like my Websphere MQ java client is not picking this configuration file or my configuration file setup is incorrect. My client errors out with reason code 2397. Just an FYI, my environment variable configurations look as under:
MQJAVAFILEPATH=C:\Program Files\IBM\WebSphere MQ
MQCLNTCF=C:\Program Files\IBM\WebSphere MQ\mqclient.ini

Any leads in getting this resolved would be greatly appreciated.

Thanks in advance.

PS: I have been able to get the SSL configuration to work between client and server using hash table and system properties changes.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Mar 17, 2011 8:15 pm    Post subject: Reply with quote

Grand High Poobah

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

AFAIK the .ini file is used in a .NET environment.
For a Java program to use it (not impossible) you would have to program the java client to read the file and use it as properties?

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
nab054371
PostPosted: Fri Mar 18, 2011 12:22 am    Post subject: Reply with quote

Disciple

Joined: 15 Nov 2006
Posts: 173

Well the URL below seems to suggest that it works just as well for WebSphere MQ clients developed using Java classes?

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.csqzaf.doc/cs13350_.htm
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Mar 18, 2011 11:10 am    Post subject: Reply with quote

Grand High Poobah

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

nab054371 wrote:
Well the URL below seems to suggest that it works just as well for WebSphere MQ clients developed using Java classes?

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.csqzaf.doc/cs13350_.htm

Usually including client stuff if you really look in depth it should be in the Using Java manual. This is in the client manual. As such I expect it to work for C/C++ and .NET stuff (I believe it is referenced in the Using .NET manual).
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ Client configuration file with WebSphere MQ Java client
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.