I've used JMS in the past but am now looking at using the MQSeries API directly. I don't know anything about channels and am trying to use the MQMessenger sample. Does anyone know the name of a pre-configured channel that I can use for establishing a test connection or where I can find the names of valid channels on my installation?
Joined: 27 Nov 2001 Posts: 6 Location: BeiJing, China
In your JMS program, you can add these lines:
"
MQQueueConnectionFactory factory = new MQQueueConnectionFactory();
connection = factory.createQueueConnection();
factory.setCCSID(819);
factory.setChannel("JAVA.CLIENT");
factory.setHostName("127.0.0.1");
factory.setPort(1414);
factory.setQueueManager("");
factory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
"
and define a channel in the queue mqnqger,
" define channel(JAVA.CLIENT) chltype(svrconn) "
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum