camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Radhakrishna Kalyan <nrkkal...@gmail.com>
Subject Need help
Date Mon, 18 Aug 2014 10:47:48 GMT
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.

-- 
Thanks and Regards
N Radhakrishna Kalyan

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message