Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Need help

$
0
0
Hi,

I have a requirement where I have to download a xml file from a jms queue
and upload only a specific part of that xml file to a ftp server and
finally send a status message to a different jms queue.

i.e my jms message may have the following structure.

<Payload>
<*OrderId*>123</*OrderId*>
<*FileName*>abc.txt</*FileName*>
<*Body*>bla bla bla</*Body*>
</Payload>

All I want is to download the xml message from JMS queue and then unmarshal
that xml and create a text file only with the contents between <*Body*> tag
of xml.
The file shall be named what ever given in <*FileName*> tag.

If the text file is uploaded successfully then I want to send a "*Success*"
message to a different JMS queue along with the value from <*OrderId*> tag.
If any exception occurred during the above process, then I want to send a
*"Failed"* message and exception message and the <OrderId> to the Jms queue.

Correct me if I am wrong, I think I need to create 3 endpoints 2 for jms
queues and 1 for ftp.
I am struck at, do I need a DataFormat or a Processor or any thing else.
Can somebody give me some pointers here.

Thanks in advance.

P: +46 733 312 584
http://about.me/nrkkalyan
<http://about.me/nrkkalyan>

Viewing all articles
Browse latest Browse all 5648

Trending Articles