13 |
|
|
14 |
/* */ public class MQ implements AutoCloseable |
/* */ public class MQ implements AutoCloseable |
15 |
/* */ { |
/* */ { |
16 |
/* */ MQQueueManager _qMgr; |
/* */ MQQueueManager _qMgr = null; |
17 |
/* */ MQQueue _mQQueue; |
/* */ MQQueue _mQQueue = null; |
18 |
/* */ |
/* */ |
19 |
/* */ @SuppressWarnings("unchecked") |
/* */ @SuppressWarnings("unchecked") |
20 |
public MQ(String qmgr, int port, String mqServerName, String channelName, int ccsid, boolean log) |
public MQ(String qmgr, int port, String mqServerName, String channelName, int ccsid, boolean log) |
21 |
/* */ throws MQException |
/* */ throws Exception |
22 |
/* */ { |
/* */ { |
23 |
/* 36 */ MQEnvironment.hostname = mqServerName; |
/* 36 */ MQEnvironment.hostname = mqServerName; |
24 |
/* 37 */ MQEnvironment.port = port; |
/* 37 */ MQEnvironment.port = port; |
36 |
/* */ try { |
/* */ try { |
37 |
/* 49 */ this._qMgr = new MQQueueManager(qmgr); |
/* 49 */ this._qMgr = new MQQueueManager(qmgr); |
38 |
/* */ } catch (MQException e) { |
/* */ } catch (MQException e) { |
39 |
/* 51 */ e.printStackTrace(); |
throw new Exception("Could not create QueueManager", e); |
40 |
/* */ } |
/* */ } |
41 |
/* */ } |
/* */ } |
42 |
/* */ |
/* */ |