【发布时间】:2017-03-31 12:34:45
【问题描述】:
我正在尝试使用 MQ api 连接到队列管理器,并且我能够连接到队列管理器
MQQueueManager queueManager=new MQQueueManager(qmgrName);
queueManager.accessQueue(qName,MQOO_OUTPUT);
但是当我尝试使用 JMS 连接到同一个队列管理器时,它会失败并显示 2058 代码。不确定我是否缺少 JMS 的某些内容
MQQueueConnectionFactory qcf=new MQQueueConnectionFactory();
qcf.setQueueManager(qmgrName);
qcf.setPort(1414);
qcf.setHostname("localhost");
qcf.createQueueConnection();
【问题讨论】: