| Author | 
		  Message
		 | 
		
		  | Esa | 
		  
		    
			  
				 Posted: Thu May 16, 2013 5:16 am    Post subject: RFH2 and monitoring profile | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 22 May 2008 Posts: 1387 Location: Finland 
  | 
		  
		    
			  
				It does not seem possible to send the whole MQRFH2/usr folder in a monitoring event. 
 
 
   
	| Code: | 
   
  
	<p:applicationDataQuery>
 
  <p:complexContent p:name="something">
 
     <p:payloadQuery p:queryText="$Root/MQRFH2/usr"/>
 
   </p:complexContent>
 
</p:applicationDataQuery> | 
   
 
 
 
This does not send anything. Maybe it has something to do with this?
 
 
Do you need to create a complexContent element for each usr field separately?
 
 
I haven't tested yet if you can do even that.
 
 
I'm running 8.0.0.1
 
 
moderators, please move this to Message Broker forum. I have no idea how I managed to post it here. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | bruce2359 | 
		  
		    
			  
				 Posted: Thu May 16, 2013 5:32 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Poobah
 
 Joined: 05 Jan 2008 Posts: 9486 Location: US: west coast, almost. Otherwise, enroute. 
  | 
		  
		    
			  
				So moved. _________________ I like deadlines. I like to wave as they pass by.
 
ב''ה
 
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Esa | 
		  
		    
			  
				 Posted: Thu May 16, 2013 5:36 am    Post subject: Re: RFH2 and monitoring profile | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 22 May 2008 Posts: 1387 Location: Finland 
  | 
		  
		    
			  
				
   
	| Esa wrote: | 
   
  
	
 
Do you need to create a complexContent element for each usr field separately?
 
 | 
   
 
 
 
I should have written:
 
 
Do you need to create a simpleContent element for each usr field separately? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Thu May 16, 2013 5:51 am    Post subject: Re: RFH2 and monitoring profile | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				
   
	| Esa wrote: | 
   
  
	
   
	| Esa wrote: | 
   
  
	
 
Do you need to create a complexContent element for each usr field separately?
 
 | 
   
 
 
 
I should have written:
 
 
Do you need to create a simpleContent element for each usr field separately? | 
   
 
 
 
I would expect so. Because unless I am mistaken you can only capture fields in the event, not tree snippets. However you could run ASBITSTREAM on the tree snippets and send that information to the environment. I can then be retrieved as a field from the environment....
 
 
Have fun   _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Esa | 
		  
		    
			  
				 Posted: Thu May 16, 2013 6:01 am    Post subject: Re: RFH2 and monitoring profile | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 22 May 2008 Posts: 1387 Location: Finland 
  | 
		  
		    
			  
				
   
	| fjb_saper wrote: | 
   
  
	Because unless I am mistaken you can only capture fields in the event, not tree snippets. However you could run ASBITSTREAM on the tree snippets and send that information to the environment. I can then be retrieved as a field from the environment....
 
 | 
   
 
 
 
I regret to say, but you are mistaken. You can emit structures with a complexContent definition.
 
 
For some reason I'm not able to emit even single fields from MQRHF2/usr with simpleContent. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Thu May 16, 2013 6:05 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				Remember that under WMQv7 and higher, there's no such thing as an RFH2, just simulations of it within WMB. This may explain why WMB can't see a usr "folder" because it's a list of properties.
 
 
I'd raise a PMR. That APAR sounds connected but similar, and IMHO another PMR would either confirm you need that APAR or highlight there's an additional problem in this area. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Esa | 
		  
		    
			  
				 Posted: Thu May 16, 2013 6:21 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 22 May 2008 Posts: 1387 Location: Finland 
  | 
		  
		    
			  
				Sounds funny because the APAR says like this:
 
 
   
	| APAR IC82100 wrote: | 
   
  
	In Monitoring profile, if the event payload section is
 
selected in order to add a simple field from MQRFH2 header (for
 
example: $Root/MQRFH2/usr/FILENAME), the generated event will
 
treat this data field as a complex data. The generated event
 
will have the field, extracted from the message, contained in
 
wmb:applicationData/wmb:complexContent field instead of
 
wmb:applicationData/wmb:simpleContent. | 
   
 
 
 
I read this as like you can add data from MQRFH2/usr.
 
 
But maybe no RFH2 data is sent any more. That would in fact be a fix to the problem described in the APAR. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Thu May 16, 2013 6:42 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| Esa wrote: | 
   
  
	| But maybe no RFH2 data is sent any more. That would in fact be a fix to the problem described in the APAR. | 
   
 
 
 
Well there's an MQRFH2 parser in WMBv8 and the InfoCenter describes usr as a folder so you should be able to do what you're describing _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Esa | 
		  
		    
			  
				 Posted: Thu May 16, 2013 6:56 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 22 May 2008 Posts: 1387 Location: Finland 
  | 
		  
		    
			  
				It seems that you need to select 'Use  MQRFH2 compact parser for MQRFH2 header' in the MQInput node. I made that change and the flow emitted the usr folder nicely.
 
 
Thanks, Vitor. Your link guided me to the right path. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Esa | 
		  
		    
			  
				 Posted: Thu May 16, 2013 7:44 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 22 May 2008 Posts: 1387 Location: Finland 
  | 
		  
		    
			  
				| Worked with 8.0.0.2, not with 8.0.0.1... | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |