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