You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Olaf <om...@gmail.com> on 2014/04/01 13:48:31 UTC
Which EPI to use?
Hello,
I have an input message which containts id of a FilesObject and urls of
files to be downloaded for this object:
{"filesObjectId":1, "file1":"url", "customFiles": [{"id":1,"name":"Foo"},
{"id":2, "name":"Bar"}]}
The task is to load Files object by id and download only new files if they
not exists in FilesObject. some files have names in url query, some files
have names in message
My idea was to create a custom Splitter which builds single message like
{filesObjectId:1, fileUrl:url, fileName:name} and then each message
downloads files with http Component and then aggregate messages to save
files into files object. Or each single message would update FilesObject
separately, which would produce an overhead to call FileObject backend
multiple times
what do you think?
--
View this message in context: http://camel.465427.n5.nabble.com/Which-EPI-to-use-tp5749621.html
Sent from the Camel - Users mailing list archive at Nabble.com.