| Author | Message | 
		
		  | srohit | 
			  
				|  Posted: Thu Oct 11, 2001 1:58 am    Post subject: |   |  | 
		
		  | Newbie
 
 
 Joined: 10 Oct 2001Posts: 3
 
 
 | 
			  
				| I have installed mqseries for windows 2000 version5.2.I have also installed the client software on an windows 98 Pc. 
 I am trying to connect from the client to the queue of mqseries using amqsputc command.
 But I am geeting an error reason code 2059. When i open the error log it gives me error as: Type of remote channel not suitable for action requested.
 
 I have created all the queues and connections using the pdf available on net.
 
 Can somebody tell me how i can connect to a mqseries server from the client pc
 
 Thanks in Advance
 Rohit
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Cliff | 
			  
				|  Posted: Thu Oct 11, 2001 3:20 am    Post subject: |   |  | 
		
		  | Centurion
 
 
 Joined: 27 Jun 2001Posts: 145
 Location: Wiltshire
 
 | 
			  
				| You should look in the Clients manual for a full explanation, but one way of allowing a client to connect to a qmgr is to alter the qmgr to enable automatic definition of channels (highlight the qmgr in MQSeries Explorer, Properties->Communication) then create a Server Connection channel.  On the client machine, create an environment variable MQCHLLIB and set it to the network path of your qmgr's channel table, which will be something like Z:program filesMQSeriesQMgrsYOURQMNAME@ipcc if Z is mapped to the server's C drive. 
 This sets up the qmgr to automatically define channels when servicing inbound connection requests and tells the client where to look to get information on the qmgr it is trying to connect to, and you should be in business.  But as I said, the full picture is in the manual!
 
 Have fun,
 
 Cliff
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | bower5932 | 
			  
				|  Posted: Thu Oct 11, 2001 6:21 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 27 Aug 2001Posts: 3023
 Location: Dallas, TX, USA
 
 | 
			  
				| Another quick approach to take is to set the MQSERVER environment variable: 
 set MQSERVER=SYSTEM.DEF.SVRCONN/tcp/hostname
 
 It doesn't give you as many options as the channel table, but it allows for a quick test.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | srohit | 
			  
				|  Posted: Thu Oct 11, 2001 6:29 am    Post subject: |   |  | 
		
		  | Newbie
 
 
 Joined: 10 Oct 2001Posts: 3
 
 
 | 
			  
				| I tried out the option but am still not able to connect it. the error in log file is as follows10/11/01  19:46:15
 AMQ9547: Type of remote channel not suitable for action requested.
 
 EXPLANATION:
 The operation requested cannot be performed because channel 'channel1' on the
 remote machine is not of a suitable type.  For example, if the local channel is
 defined as a sender the remote machine must define its channel as either a
 receiver or requester.
 ACTION:
 Check that the channel name is specified correctly.  If it is, check that the
 remote channel has been defined correctly.
 
 can you help me by telling what exactly i have to do if i recive the above error
 
 Thanks in advance
 Rohit
 
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | EddieA | 
			  
				|  Posted: Thu Oct 11, 2001 7:58 am    Post subject: |   |  | 
		
		  |  Jedi
 
 
 Joined: 28 Jun 2001Posts: 2453
 Location: Los Angeles
 
 | 
			  
				| Rohit, 
 The message is telling you exactly what is wrong.  "Type of remote channel not suitable for action requested."
 
 What Channel type are you trying to connect to on the server.  It should be a Server-Connection channel, CHLTYPE(SVRCONN).
 
 Cheers.
 
 _________________
 Eddie Atherton
 IBM Certified Solution Developer - WebSphere Message Broker V6.1
 IBM Certified Solution Developer - WebSphere Message Broker V7.0
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | srohit | 
			  
				|  Posted: Thu Oct 11, 2001 11:06 pm    Post subject: |   |  | 
		
		  | Newbie
 
 
 Joined: 10 Oct 2001Posts: 3
 
 
 | 
			  
				| thanks guys. 
 I have been able to solve it.The channel type was server channel, as i did it to server connection channel .its working fine.
 
 
 thanks a lot
 Rohit
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |