|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQCONNX support for Java or JMS |
« View previous topic :: View next topic » |
Author |
Message
|
mktgurutsm |
Posted: Wed Jan 28, 2004 7:40 am Post subject: MQCONNX support for Java or JMS |
|
|
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 |
|
 |
vennela |
Posted: Wed Jan 28, 2004 8:01 am Post subject: |
|
|
 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 |
|
 |
mktgurutsm |
Posted: Wed Jan 28, 2004 8:26 am Post subject: Good information |
|
|
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 |
|
 |
JasonE |
Posted: Wed Jan 28, 2004 8:58 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|