Search in sources :

Example 1 with MQInvalidClientIDRuntimeException

use of com.sun.messaging.jms.MQInvalidClientIDRuntimeException in project openmq by eclipse-ee4j.

the class ConnectionAdapter method _setClientIDForContext.

/**
 * Set clientID to the specified value, bypassing any checks as to whether calling setClientID is allowed at this time
 */
@Override
public void _setClientIDForContext(String clientID) {
    _loggerJC.entering(_className, "_setClientIDForContext()", clientID);
    checkClosed2();
    try {
        xac._setClientID(clientID);
    } catch (InvalidClientIDException ice) {
        throw new MQInvalidClientIDRuntimeException(ice);
    } catch (JMSException e) {
        throw new MQRuntimeException(e);
    }
}
Also used : InvalidClientIDException(jakarta.jms.InvalidClientIDException) MQInvalidClientIDRuntimeException(com.sun.messaging.jms.MQInvalidClientIDRuntimeException) JMSException(jakarta.jms.JMSException) MQRuntimeException(com.sun.messaging.jms.MQRuntimeException)

Aggregations

MQInvalidClientIDRuntimeException (com.sun.messaging.jms.MQInvalidClientIDRuntimeException)1 MQRuntimeException (com.sun.messaging.jms.MQRuntimeException)1 InvalidClientIDException (jakarta.jms.InvalidClientIDException)1 JMSException (jakarta.jms.JMSException)1