ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Using channels in MQSeries API (with java)

Post new topic  Reply to topic
 Using channels in MQSeries API (with java) « View previous topic :: View next topic » 
Author Message
fanningpj
PostPosted: Tue Dec 11, 2001 5:30 am    Post subject: Reply with quote

Newbie

Joined: 03 Dec 2001
Posts: 7

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?
Back to top
View user's profile Send private message Visit poster's website
WilliamZhang
PostPosted: Wed Dec 19, 2001 9:17 pm    Post subject: Reply with quote

Newbie

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) "

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Using channels in MQSeries API (with java)
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.