| Author | 
		  Message
		 | 
		
		  | lokeshraghuram | 
		  
		    
			  
				 Posted: Mon Aug 22, 2016 8:46 pm    Post subject: Equivalent of tpstatus mqsc command in Java | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 10 Dec 2013 Posts: 14
  
  | 
		  
		    
			  
				Hello,
 
 
Can anyone tell me if there is a method which I can use in Java that will give me the result of "display tpstatus('topicstring')?
 
 
tpstatus give the details of all subscribers that subscribe to the topic mentioned. Is there a way we get this information using Java API? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | PaulClarke | 
		  
		    
			  
				 Posted: Mon Aug 22, 2016 9:06 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand 
  | 
		  
		    
			  
				I don't know about a 'method' but all the MQ commands are available programmatic ally using the Programmable Command Format (PCF) where you send a message to the Command Server and collate the responses. This is how remote administration tools such as MQ Explorer, MQSCX and MO71 do what they do.
 
 
Cheers,
 
 
Paul. _________________ Paul Clarke
 
MQGem Software
 
www.mqgem.com | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Tue Aug 23, 2016 3:37 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				There is a Java package that contains classes that make working with PCF messages much easier - look for PCFAgent.
 
 
Oh, and as a general rule, any MQSC command that uses "DISPLAY" will map to a PCF command that is an "INQUIRE". _________________ chmod  -R ugo-wx / | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Tue Aug 23, 2016 6:38 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				
   
	| mqjeff wrote: | 
   
  
	There is a Java package that contains classes that make working with PCF messages much easier - look for PCFAgent.
 
 
Oh, and as a general rule, any MQSC command that uses "DISPLAY" will map to a PCF command that is an "INQUIRE". | 
   
 
 
 
And if you really want to simplify look for PCFMessageAgent...   _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Wed Aug 24, 2016 4:07 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				
   
	| fjb_saper wrote: | 
   
  
	
   
	| mqjeff wrote: | 
   
  
	There is a Java package that contains classes that make working with PCF messages much easier - look for PCFAgent.
 
 
Oh, and as a general rule, any MQSC command that uses "DISPLAY" will map to a PCF command that is an "INQUIRE". | 
   
 
 
 
And if you really want to simplify look for PCFMessageAgent...   | 
   
 
 
 
Details, details, details...     _________________ chmod  -R ugo-wx / | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |