WAS 6.1 ベースのアプリケーションを WAS 7.0 に移行する作業を行っています。以下の 2 つのステートメントを見つけました。
com.ibm.mq.MQEnvironment.securityExit = null; // 1
と
MQQueueConnectionFactory factory = new MQQueueConnectionFactory();
factory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP); // 2
行番号 1
securityExitは非推奨であり、ドキュメントには次のように記載されています。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は非推奨です。ドキュメントは次のように述べています。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のドキュメントはあまり役に立ちません。
非推奨のステートメントを置き換える際の助けをいただければ幸いです。