| Author | 
		  Message
		 | 
		
		  | pratima_09 | 
		  
		    
			  
				 Posted: Mon May 08, 2006 7:40 am    Post subject: Client Connection using imqsputc | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 05 May 2006 Posts: 13
  
  | 
		  
		    
			  
				I think, I went 1 step ahead now:
 
 
I actually ran the following:
 
 
imqsputc LOGIN.QU MY_QM SYSTEM.DEF.SVRCONN/tcp/130.151.253.160
 
( I didn't mention the port assuming that it wud default to 1414 as I was getting a syntax error if I include that).
 
 
Now I am getting the following:
 
Sample IMQSPUT start
 
ImqQueueManager::connect ended with reason code 2035
 
 
So does this mean, on the receiver end, appropriate permissions need to be set on the queue manager??
 
 
I looked up the following reason code :
 
MQRC_NOT_AUTHORIZED
 
 
Not authorized for access.
 
The user is not authorized to perform the operation attempted:
 
    * On an MQCONN or MQCONNX call, the user is not authorized to connect to the queue manager.
 
    * On an MQOPEN or MQPUT1 call, the user is not authorized to open the object for the option(s) specified.
 
      
 
 
-Pratima | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kevinf2349 | 
		  
		    
			  
				 Posted: Mon May 08, 2006 7:42 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 28 Feb 2003 Posts: 1311 Location: USA 
  | 
		  
		    
			  
				Looks like you don't have authority but at least you are getting through now   | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | pratima_09 | 
		  
		    
			  
				 Posted: Mon May 08, 2006 7:47 am    Post subject: Client Connection using imqsputc | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 05 May 2006 Posts: 13
  
  | 
		  
		    
			  
				Yes, I was successfully able to write to the remote queue as root.    
 
 
I would like to Thank all of you for ur suggestions in guiding me through this.
 
 
-Pratima | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | tleichen | 
		  
		    
			  
				 Posted: Mon May 08, 2006 12:14 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Yatiri
 
 Joined: 11 Apr 2005 Posts: 663 Location: Center of the USA 
  | 
		  
		    
			  
				I don't understand... you are trying to run amqsputc in an MQserver (queue manager) environment?  This program is only set up to run as a client program!    _________________ IBM Certified MQSeries Specialist
 
IBM Certified MQSeries Developer | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | EddieA | 
		  
		    
			  
				 Posted: Mon May 08, 2006 2:14 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi
 
 Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles 
  | 
		  
		    
			  
				
   
	| Quote: | 
   
  
	| you are trying to run amqsputc in an MQserver (queue manager) environment | 
   
 
 
This is the OPs opening post:
 
   
	| Quote: | 
   
  
	| I am trying to connect to a remote queue manager ( a queue manager on a different UNIX box)  | 
   
 
 
Also, as pointed out previously, the Op is not running amqsputc.
 
 
Cheers, _________________ Eddie Atherton
 
IBM Certified Solution Developer - WebSphere Message Broker V6.1
 
IBM Certified Solution Developer - WebSphere Message Broker V7.0 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | pratima_09 | 
		  
		    
			  
				 Posted: Tue May 09, 2006 9:49 am    Post subject: imqsputc - giving me some trouble. | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 05 May 2006 Posts: 13
  
  | 
		  
		    
			  
				Hi,
 
 
Yesterday, I tried connecting from my Client on box A to Server on box B. Today, I am running my server on box A and client on box B. 
 
 
I am using imqsputc sample program, I am getting reason code 2059. I have made sure, that all my settings are proper. 
 
 
imqsputc SEND.QU PRATIMA_QM SYSTEM.DEF.SVRCONN/TCP/135.151.196.55
 
 
I have the following entries in :
 
/etc/services : MQSeries 1414/tcp
 
/etc/inetd.conf:MQSeries stream tcp nowait root /opt/mqm/bin/amqcrsta amqcrsta -m PRATIMA_QM
 
 
I have restarted inetd.
 
 
What am i missing ? 
 
 
Thanks
 
Pratima | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | vennela | 
		  
		    
			  
				 Posted: Tue May 09, 2006 9:54 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India 
  | 
		  
		    
			  
				
   
	| Quote: | 
   
  
	| What am i missing ?  | 
   
 
 
Start at the beginning of the thread and o through each post as it it were a check list. 
 
I am serious, there is plenty of info in this 20 posts here. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | wschutz | 
		  
		    
			  
				 Posted: Tue May 09, 2006 9:57 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired) 
  | 
		  
		    
			  
				If you have it working in one direction, you should be able to figure out how to make it work in the other direction....   _________________ -wayne | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | pratima_09 | 
		  
		    
			  
				 Posted: Tue May 09, 2006 10:22 am    Post subject: Client Connection using imqsputc | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 05 May 2006 Posts: 13
  
  | 
		  
		    
			  
				I have been trying to make it work for the reverse direction, since I had it working yesterday. I have gone through the entire threads a couple of times  to make sure i have everything set . 
 
I thought I shud have this one working in a jiffy..     
 
 
Please let me know if anyone of you has some ideas..
 
 
Thanks
 
Pratima | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |