目前我正在使用Websphere MQ V8 .
public static void main(String[] args) throws JMSException {
// TODO Auto-generated method stub
try{
MQEnvironment.disableTracing();
MQQueueConnectionFactory cf = new MQQueueConnectionFactory();
cf.setStringProperty(WMQConstants.WMQ_HOST_NAME, "localhost");
cf.setStringProperty(WMQConstants.WMQ_PORT, "1414");
cf.setStringProperty(WMQConstants.WMQ_CHANNEL, "TEST_SVR_CONN");
cf.setStringProperty(WMQConstants.WMQ_QUEUE_MANAGER, "DEVTESTQUEUE");
//cf.setIntProperty(WMQConstants.WMQ_CONNECTION_MODE, WMQConstants.WMQ_CM_DIRECT_HTTP);
//cf.setTransportType(WMQConstants.WMQ_CM_BINDINGS);
//set MQServer =
//HelloWorldConsumer.HelloWorldProducer();
MQQueueConnection connection = (MQQueueConnection) cf.createQueueConnection();
MQSession session &