--- miscJava/thn_mqutils/src/main/java/com/traiana/utils/mq/MQ.java 2016/04/21 08:37:03 3014 +++ miscJava/thn_mqutils/src/main/java/com/traiana/utils/mq/MQ.java 2016/04/21 09:23:43 3015 @@ -13,12 +13,12 @@ /* */ public class MQ implements AutoCloseable /* */ { -/* */ MQQueueManager _qMgr; -/* */ MQQueue _mQQueue; +/* */ MQQueueManager _qMgr = null; +/* */ MQQueue _mQQueue = null; /* */ /* */ @SuppressWarnings("unchecked") public MQ(String qmgr, int port, String mqServerName, String channelName, int ccsid, boolean log) -/* */ throws MQException +/* */ throws Exception /* */ { /* 36 */ MQEnvironment.hostname = mqServerName; /* 37 */ MQEnvironment.port = port; @@ -36,7 +36,7 @@ /* */ try { /* 49 */ this._qMgr = new MQQueueManager(qmgr); /* */ } catch (MQException e) { -/* 51 */ e.printStackTrace(); + throw new Exception("Could not create QueueManager", e); /* */ } /* */ } /* */