2

mail@pastecode.io avatar
unknown
java
a year ago
564 B
1
Indexable
Never
public void disConnect() {
		connectCount = ((connectCount - 1) > 0)? connectCount - 1 : 0;
		if (connectCount == 0) {
			if (queueManager != null) {
				try {
					queueManager.disconnect();
				} catch (MQException e) { Func.logNew(Func.getStackTrace(e));
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			if (outQueue != null) {
				try {
					outQueue.close();
				} catch (MQException e) { Func.logNew(Func.getStackTrace(e));
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
		}
	}