【发布时间】:2013-04-09 23:32:20
【问题描述】:
我正在将基于 WAS 6.1 的应用程序迁移到 WAS 7.0 我发现下面两条语句
com.ibm.mq.MQEnvironment.securityExit = null; // 1
和
MQQueueConnectionFactory factory = new MQQueueConnectionFactory();
factory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP); // 2
-
在线#1
securityExit是 deprecated 文档说:The security exit used when connecting to a queue manager. It allows you to customise the security flows that occur when an attempt is made to connect to a queue manager. If you want to provide your own security exit, define a class that implements the MQSecurityExit interface and assign securityExit to an instance of that class. If you set this field to null no security exit is called.据我了解,
com.ibm.mq.MQSecurityExit接口需要实现。 将 securityExit 分配给该类的实例是什么意思? -
在线#2
JMSC是 deprecated。医生说:This parameter can be passed to MQConnectionFactory.setTransportType(int) to indicate that the application should connect to the queue manager in client TCP/IP mode.对于文档说的界面也是:
Use the constants defined in the classes in the com.ibm.mq.constants package insteadcom.ibm.mq.constants 的文档没有多大帮助。
感谢您在替换已弃用的语句方面的任何帮助。
【问题讨论】:
标签: java ibm-mq deprecated