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 » MQCONNX support for Java or JMS

Post new topic  Reply to topic
 MQCONNX support for Java or JMS « View previous topic :: View next topic » 
Author Message
mktgurutsm
PostPosted: Wed Jan 28, 2004 7:40 am    Post subject: MQCONNX support for Java or JMS Reply with quote

Novice

Joined: 08 Jan 2004
Posts: 21
Location: New York

According to the MQ Application Programming Guide, Java and JMS are not listed as supported languages for invokation of MQCONNX. Does anyone know if MQCONNX can be invoked from Java or JMS????
Back to top
View user's profile Send private message Yahoo Messenger
vennela
PostPosted: Wed Jan 28, 2004 8:01 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

I have seen the following 2 methods that are equivalent to MQCONNX.

Code:
public MQQueueManager(String queueManagerName, int options)


public MQQueueManager(String queueManagerName, int options, MQConnectionManager cxManager)


From the manual for the first method

Quote:
This version of the constructor is intended for use only in bindings mode
and it uses the extended connection API (MQCONNX) to connect to the
queue manager. The options parameter allows you to choose fast or normal
bindings. Possible values are:
MQC.MQCNO_FASTPATH_BINDING for fast bindings *.
MQC.MQCNO_STANDARD_BINDING for normal bindings.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mktgurutsm
PostPosted: Wed Jan 28, 2004 8:26 am    Post subject: Good information Reply with quote

Novice

Joined: 08 Jan 2004
Posts: 21
Location: New York

Thanks for that. Excellent information, but with the methods described, can the same options be specified as are in MQCONNX.. For example, maxmsglength and ssl information?
Back to top
View user's profile Send private message Yahoo Messenger
JasonE
PostPosted: Wed Jan 28, 2004 8:58 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

Sample ssl:

System.out.println("Starting program...");
MQEnvironment.enableTracing(3, new java.io.FileOutputStream("trace.log"));

MQEnvironment.hostname = "machine.name.domain.com";
MQEnvironment.channel = "CHANNEL_NAME";
MQEnvironment.port = 1414;
MQEnvironment.properties.put(MQC.SSL_CIPHER_SUITE_PROPERTY,"SSL_RSA_WITH_NULL_MD5"); // i.e. NULL_MD5

MQQueueManager qMgr;
MQQueue queue;
try {
qMgr = new MQQueueManager("QMgrName");
etc...


To run the program type:

java -Djavax.net.ssl.trustStore=trust_store_location_and_name sslConn
If you are not using the default trust store.

If you are then you do not need to specify the javax.net.ssl.trustStore attribute:
java sslConn
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQCONNX support for Java or JMS
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.