2016-12-09 6 views
0

setConnectionNameList(String)メソッドをMQQueueConnectionFactoryに表示するには、追加のjarファイルまたは事前設定を行う必要がありますか?使用できませんMQQueueConnectionFactoryのSetConnectionNameListメソッド

import com.ibm.mq.jms.*; 
MQQueueConnectionFactory connectionFactory = new MQQueueConnectionFactory(); 
connectionFactory.setConnectionNameList("hostName(port),hostName(port)"); 
connectionFactory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP); 
connectionFactory.setQueueManager("queueManagerName"); 
connectionFactory.setChannel("CLIENTCONNECTION"); 

Eclipseは下記のスローエラー:

Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method setConnectionNameList(String) is undefined for the type MQQueueConnectionFactory

答えて

0

setConnectionNameListは、WebSphere MQ 7.0.1 APIで導入されました。古いバージョンのMQ JARを使用している可能性はありますか?

+0

はい私はWebSphere MQ 7.0.1を使用しています。私がgoogleで見つけた最新のJARはcom.ibm.mqjms-6.0.1.1.jarです。使用しているJARのバージョンを教えてください。 – Ifthikar

関連する問題