| Author | 
		  Message
		 | 
		
		  | kiran | 
		  
		    
			  
				 Posted: Wed Feb 06, 2002 5:47 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 05 Feb 2002 Posts: 3
  
  | 
		  
		    
			  
				Hi all,
 
          Can we covert a BLOB message into MRM message in a compute node,if we don't no the message type.I have 'n' no.,of messages in a message set,so i can't give the message name.It will be a great help,if any one can reply back on this.
 
Thank's
 
Kiran   | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | EddieA | 
		  
		    
			  
				 Posted: Wed Feb 06, 2002 6:42 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi
 
 Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles 
  | 
		  
		    
			  
				Kiran,
 
 
ASAIK, no you can't as the parser needs to know which message to parse it against.
 
 
Is there anything in the BLOB you can check for (in hex) to determine which of the messages it is.  Then you can set the properties to allow it to be parsed.
 
 
Cheers,
 
 _________________ Eddie Atherton
 
IBM Certified Solution Developer - WebSphere Message Broker V6.1
 
IBM Certified Solution Developer - WebSphere Message Broker V7.0 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kiran26 | 
		  
		    
			  
				 Posted: Thu Feb 07, 2002 8:37 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Acolyte
 
 Joined: 06 Feb 2002 Posts: 69
  
  | 
		  
		    
			  
				Hi,
 
    Can we convert a BLOB message to MRM type in COMPUTE node,if we know the Message type.
 
Thanks
 
kiran       | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mpuetz | 
		  
		    
			  
				 Posted: Thu Feb 07, 2002 10:38 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 05 Jul 2001 Posts: 149 Location: IBM/Central WebSphere Services 
  | 
		  
		    
			  
				Hi,
 
 
you can't do it within a single compute node
 
even if you know the message type, since there
 
is no ESQL command to force the parser to reparse
 
the message buffer.
 
In your situation what one typically does, is use
 
an *external* loop parse the message piecemeal.
 
E.g.
 
 
- save message as blob in DestinationList
 
- filter(more messages ?)
 
- compute(extract next into blob,set MessageDomain to BLOB,set MRM message type)
 
- resetcontentdescriptor(to MRM)
 
- do your stuff with that part of the message
 
- compute(increase message counter)
 
- jump back to filter node
 
 
See the recent topic on 'BIP2121E and BIP2106E' for implications
 
when you use these external loops.
 
 
 
 _________________ Mathias Puetz
 
 
IBM/Central WebSphere Services
 
WebSphere Business Integration Specialist | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kiran26 | 
		  
		    
			  
				 Posted: Thu Feb 07, 2002 11:03 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Acolyte
 
 Joined: 06 Feb 2002 Posts: 69
  
  | 
		  
		    
			  
				Hi,
 
  Where can i find recent topics on 'BIP2121E and BIP2106E' for implications.Can u explain in more detail the steps i have to follow,if u have time.
 
Thank's
 
kiran  | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Miriam Kaestner | 
		  
		    
			  
				 Posted: Fri Feb 08, 2002 2:00 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 26 Jun 2001 Posts: 103 Location: IBM IT Education Services, Germany 
  | 
		  
		    
			  
				With WMQI 2.1, you can actually do a partial parse in a Compute node, using reference variables and the new CREATE statement:
 
CREATE NEXTSIBLING OF myRef PARSE(
 
 SUBSTRING(InputBody."BLOB" FROM 101),
 
 MQENC_INTEGER_REVERSED, myCCSID, myMsgSetID, myMsgID, myMsgFormatID);
 
 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mpuetz | 
		  
		    
			  
				 Posted: Fri Feb 08, 2002 2:26 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 05 Jul 2001 Posts: 149 Location: IBM/Central WebSphere Services 
  | 
		  
		    
			  
				Hi,
 
 
if you are already using 2.1 Miriams solution is as short as it gets.
 
If you still have to use 2.0.2 let me know your email address
 
in a private message and I'll mail you an example.
 
 _________________ Mathias Puetz
 
 
IBM/Central WebSphere Services
 
WebSphere Business Integration Specialist | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |