Java: Changes to IBM MQ classes for Java
For IBM® MQ 8.0, an unwanted dependency on connector.jar has been removed and changes have been made to APIs for public classes.
Unwanted dependency on connector.jar has been removed
Using JCA causes an unwanted dependency on the connector.jar file, which has been removed. The effects of this removal are as follows:
javax.resource.ResourceExceptionand its subclasses are no longer thrown or caught in the IBM MQ classes for Java.MQExceptionis thrown in place ofResourceException.javax.resource.spi.ConnectionRequestInfois no longer used in the IBM MQ classes for Java. TheMQConnectionRequestInfoabstract class and its subclasses are used in contexts whereConnectionRequestInfowas previously used.javax.resource.spi.ConnectionManageris no longer used in the IBM MQ classes for Java. TheMQConnectionManagerinterface is used in contexts whereConnectionRequestInfowas previously used.
Changes to APIs for public classes
com.ibm.mq.MQEnvironment:- The
setDefaultConnectionManager(ConnectionManager)method has been removed. - The
getDefaultConnectionManager()method now returns anMQConnectionManager.
- The
com.ibm.mq.MQQueueManager:- The
MQQueueManager(String, ConnectionManager)constructor has been removed. It is replaced by the existingMQQueueManager(String, MQConnectionManager)method. - The
MQQueueManager(String, Hashtable, ConnectionManager)constructor has been removed. It is replaced by the existingMQQueueManager(String,Hashtable, MQConnectionManager)method. - The
MQQueueManager(String, int, ConnectionManager)constructor has been removed. It is replaced by the existingMQQueueManager(String, int, MQConnectionManager)method.
- The
com.ibm.mq.MQSimpleConnectionManager:- The
allocateConnection(MQManagedConnectionFactory,ConnectionRequestInfo)method has been removed. It is replaced by theallocateConnection(MQManagedConnectionFactory,MQConnectionRequestInfo)method which throwsMQExceptionin place ofResourceExceptionto indicate failure. - The
createConnection(MQManagedConnectionFactory,ConnectionRequestInfo)method has been removed. It is replaced by thecreateConnection (MQManagedConnectionFactory,MQConnectionRequestInfo)method that throwsMQExceptionin place ofResourceExceptionto indicate failure. - The
recycleConnection(MQManagedConnectionFactory,ConnectionRequestInfo)method has been removed. It is replaced by therecycleConnection(MQManagedConnectionFactory,MQConnectionRequestInfo)method that throwsMQExceptionin place ofResourceExceptionto indicate failure.
- The
Changes to CipherSuite support
See Java and JMS: changes to CipherSuite support for further information.