use of com.sun.messaging.jms.MQRuntimeException in project openmq by eclipse-ee4j.
the class JMSContextImpl method recover.
@Override
public void recover() {
checkNotClosed();
disallowSetClientID();
try {
session.recover();
} catch (IllegalStateException e) {
throw new MQIllegalStateRuntimeException(e);
} catch (JMSException e) {
throw new MQRuntimeException(e);
}
}
use of com.sun.messaging.jms.MQRuntimeException in project openmq by eclipse-ee4j.
the class JMSContextImpl method createQueue.
@Override
public Queue createQueue(String queueName) {
checkNotClosed();
disallowSetClientID();
try {
return session.createQueue(queueName);
} catch (JMSException e) {
throw new MQRuntimeException(e);
}
}
use of com.sun.messaging.jms.MQRuntimeException in project openmq by eclipse-ee4j.
the class JMSContextImpl method createStreamMessage.
@Override
public StreamMessage createStreamMessage() {
checkNotClosed();
disallowSetClientID();
try {
return session.createStreamMessage();
} catch (JMSException e) {
throw new MQRuntimeException(e);
}
}
use of com.sun.messaging.jms.MQRuntimeException in project openmq by eclipse-ee4j.
the class JMSContextImpl method createObjectMessage.
@Override
public ObjectMessage createObjectMessage(Serializable object) {
checkNotClosed();
disallowSetClientID();
try {
return session.createObjectMessage(object);
} catch (JMSException e) {
throw new MQRuntimeException(e);
}
}
use of com.sun.messaging.jms.MQRuntimeException in project openmq by eclipse-ee4j.
the class JMSContextImpl method setExceptionListener.
@Override
public void setExceptionListener(ExceptionListener listener) {
checkNotClosed();
try {
connection.setExceptionListener(listener);
} catch (JMSException e) {
throw new MQRuntimeException(e);
}
disallowSetClientID();
}
Aggregations