ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Is it possible to use the MRM Parser in a Java Compute node

Post new topic  Reply to topic
 Is it possible to use the MRM Parser in a Java Compute node « View previous topic :: View next topic » 
Author Message
timjohnarm
PostPosted: Sun Jun 22, 2008 3:31 pm    Post subject: Is it possible to use the MRM Parser in a Java Compute node Reply with quote

Apprentice

Joined: 28 Sep 2004
Posts: 40
Location: Melbourne Australia

Running Message Broker V6.1.0.2 with toolkit 6.1.0.3.

Its easy enough to invoke the XMLNSC parser against an XML bitstream outMessage.getRootElement().createElementAsLastChildFromBitstream(blobBytesIn, MbXMLNSC.PARSER_NAME, "", "", "", 0, 0, 0);

I can even include a message set outMessage.getRootElement().createElementAsLastChildFromBitstream(blobBytesIn, MbXMLNSC.PARSER_NAME, "TestMsg", "L4CQGRC002001", "XML", 0, 0, 0);

What I can't work out is how to invoke the MRM parser as I would like to be able to accept either an XML message or a fixed format message with the same logical structure.

I realise I could force my MQ users to use the RFH2 header and mcd folder with its subfolders but would rather not. Aside from anything else I'd like to be able to accept input from HTTP, MQ and Files through a common piece of code.

Is it even possible?
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Jun 23, 2008 12:56 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

You can use the MRM parser with createElementAsLastChild(). Just replace 'XMLNSC' with 'MRM'. Did you try that, and hit problems?

Make sure that 'MRM' is listed as an 'Other supported domain' in the message set. Otherwise the BAR file will not contain a dictionary for the MRM parser to use.

By the way, you don't need to specify the 'Type' and 'Format' when using XMLNSC. It only uses the message set.
Back to top
View user's profile Send private message
timjohnarm
PostPosted: Mon Jun 23, 2008 1:35 pm    Post subject: Reply with quote

Apprentice

Joined: 28 Sep 2004
Posts: 40
Location: Melbourne Australia

Yes its easy enough on the output side. My issue is being able to use the MRM parser on the input side against a BLOB.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Is it possible to use the MRM Parser in a Java Compute node
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.