|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Read text message through java compute node |
« View previous topic :: View next topic » |
Author |
Message
|
aishwaryat |
Posted: Thu Dec 08, 2016 2:39 am Post subject: Read text message through java compute node |
|
|
Newbie
Joined: 08 Dec 2016 Posts: 2
|
I'm new to IIB. I'm trying to read the text message ( plain text ) from input file node and transferring to mq output node. In between I want to modify the text using Java Compute Node. How to achieve the following. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Dec 08, 2016 5:12 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Read the message.
Use a parser to turn it into a logical message tree.
Use a JavaCompute node to transform the logical message tree into the one you need to send.
Send the logical message tree to an MQOutput node.
All of these steps are demonstrated in the samples/tutorials that come with the product.
All of these steps are basic, and easy to test on your own. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Vitor |
Posted: Thu Dec 08, 2016 5:16 am Post subject: Re: Read text message through java compute node |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
aishwaryat wrote: |
In between I want to modify the text using Java Compute Node. |
By writing code.
aishwaryat wrote: |
How to achieve the following. |
This is another way of asking "how do I use IIB?"
We don't provide training, and that's what you need.
In addition to figuring out writing code (which isn't the same as writing Java running under WAS, the environment is different), you need to figure out how the FileInput node is handing the input text (hint: you should model it with DFDL; if it's pure free form text that can't be modeled, you're in the wrong product) and how to explain to the MQOutput node how the serialization into the queue is supposed to work.
That's before we get to non-functional requirements like error handling, any logging or auditing, file handling, queue handling, etc. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
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
|
|
|
|