| Author | 
		  Message
		 | 
		
		  | kshah | 
		  
		    
			  
				 Posted: Sun Jun 26, 2005 10:17 pm    Post subject: reading a nested message in usr folder thru JMS | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 13 Jun 2005 Posts: 23
  
  | 
		  
		    
			  
				I have issue of reading a nested structure like <alist><a>123</a><alist>
 
 
I know reading nested structure through JMS is not possible...but i would like to know if ne workaround...possible??
 
 
like can we have something like 
 
<alist><a>....</alist>or ne other idea
 
 
if nebody has ne other workaround please let me know..
 
its  urgent..GUYZ..    
 
Thanks in advance | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Mon Jun 27, 2005 11:49 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				As a work around...
 
If you have nested structures put them in the payload and not into the RFH...
 
 
Thanks | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | JacobSteenDue | 
		  
		    
			  
				 Posted: Tue Jun 28, 2005 12:34 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 22 Mar 2005 Posts: 13
  
  | 
		  
		    
			  
				I had a similar problem and chose to 'unfold' the list so that in stead of
 
<list><element/><element/></list> 
 
I now have
 
<listelement1/><listelement2/>
 
 
Crappy I know - but it works...... _________________ Jacob Steen Due
 
Chief Consultant
 
IBM Certified Solution Designer - WebSphere MQ V5.3
 
IBM Certified Solution Designer - WebSphere Business Integration Message Broker V5 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | wbintegrator | 
		  
		    
			  
				 Posted: Tue Dec 18, 2007 5:04 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 08 Feb 2006 Posts: 83
  
  | 
		  
		    
			  
				Does that mean that I can't use jms for reading messages that do carry nested xml?
 
 
I have no way to modify the format of these messages as they arrive from other applications. I just need to be able to read them and manipulate them according to my needs. The manipulation must be programmatic and therefore RFHUTIL or MQMON can't help me here.
 
 
Will I have to use MQ Base for that?? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Tue Dec 18, 2007 5:21 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				
   
	| wbintegrator wrote: | 
   
  
	| Does that mean that I can't use jms for reading messages that do carry nested xml? | 
   
 
 
 
No.
 
 
This thread is talking about the content of JMS Properties, not JMS Messages in general... _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | wbintegrator | 
		  
		    
			  
				 Posted: Tue Dec 18, 2007 5:41 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 08 Feb 2006 Posts: 83
  
  | 
		  
		    
			  
				
   
	| jefflowrey wrote: | 
   
  
	
 
No.
 
 
This thread is talking about the content of JMS Properties, not JMS Messages in general... | 
   
 
 
 
Thanks for answering so quickly and sorry for being so unclear...
 
I mean nested xml in the usr folder, not the body.
 
The above messages carry quite a complex several level xml in the usr folder - RFHUTIL and MQMON (both use MQ base as far as I know)
 
 reads them OK but when using JMS in my program, I always get the exception:
 
"The MQRFH2 header has an incorrect format."
 
 
So, what I really meant to ask: do I HAVE to use MQ Base just to browse/get this kind of messages off the queue?
 
 
much thanks! | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | JLRowe | 
		  
		    
			  
				 Posted: Thu Dec 20, 2007 3:05 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Yatiri
 
 Joined: 25 May 2002 Posts: 664 Location: South East London 
  | 
		  
		    
			  
				yes, I think you will have to use base MQ since your message producer is breaking the MQ JMS message spec
 
 
well formed MQ message != valid JMS message | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | wbintegrator | 
		  
		    
			  
				 Posted: Thu Dec 20, 2007 4:12 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 08 Feb 2006 Posts: 83
  
  | 
		  
		    
			  
				Sorry to hear that...
 
Thanks | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Thu Dec 20, 2007 4:25 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				
   
	| wbintegrator wrote: | 
   
  
	Sorry to hear that...
 
Thanks | 
   
 
 
 
As a workaround you can try to flatten your property value structure or put your xml as a single property and parse the value after retrieving it....    _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |