|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Is it possible to use the MRM Parser in a Java Compute node |
« View previous topic :: View next topic » |
Author |
Message
|
timjohnarm |
Posted: Sun Jun 22, 2008 3:31 pm Post subject: Is it possible to use the MRM Parser in a Java Compute node |
|
|
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 |
|
 |
kimbert |
Posted: Mon Jun 23, 2008 12:56 am Post subject: |
|
|
 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 |
|
 |
timjohnarm |
Posted: Mon Jun 23, 2008 1:35 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|