private MQQueueConnectionFactory createWMQConnectionFactory()

in generic-examples/ibm-mq/MQRoute.java [51:65]


    private MQQueueConnectionFactory createWMQConnectionFactory(String mqHost) {
        MQQueueConnectionFactory mqQueueConnectionFactory = new MQQueueConnectionFactory();
        try {
            mqQueueConnectionFactory.setHostName(mqHost);
            mqQueueConnectionFactory.setChannel(mqChannel);
            mqQueueConnectionFactory.setPort(mqPort);
            mqQueueConnectionFactory.setQueueManager(mqQueueManager);
            mqQueueConnectionFactory.setTransportType(WMQConstants.WMQ_CM_CLIENT);
            mqQueueConnectionFactory.setStringProperty(WMQConstants.USERID, user);
            mqQueueConnectionFactory.setStringProperty(WMQConstants.PASSWORD, password);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return mqQueueConnectionFactory;
    }