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.ResourceException
and its subclasses are no longer thrown or caught in the IBM MQ classes for Java.MQException
is thrown in place ofResourceException
.javax.resource.spi.ConnectionRequestInfo
is no longer used in the IBM MQ classes for Java. TheMQConnectionRequestInfo
abstract class and its subclasses are used in contexts whereConnectionRequestInfo
was previously used.javax.resource.spi.ConnectionManager
is no longer used in the IBM MQ classes for Java. TheMQConnectionManager
interface is used in contexts whereConnectionRequestInfo
was 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 throwsMQException
in place ofResourceException
to indicate failure. - The
createConnection(MQManagedConnectionFactory,ConnectionRequestInfo)
method has been removed. It is replaced by thecreateConnection (MQManagedConnectionFactory,MQConnectionRequestInfo)
method that throwsMQException
in place ofResourceException
to indicate failure. - The
recycleConnection(MQManagedConnectionFactory,ConnectionRequestInfo)
method has been removed. It is replaced by therecycleConnection(MQManagedConnectionFactory,MQConnectionRequestInfo)
method that throwsMQException
in place ofResourceException
to indicate failure.
- The
Changes to CipherSuite support
See Java and JMS: changes to CipherSuite support for further information.