Another solutions is to use the onCompletion callback so you can write
to the DB when the file exchange is done
http://davsclaus.blogspot.com/2009/06/on-road-to-camel-20-oncompletion.html



On Thu, Sep 17, 2009 at 12:06 PM, Bak Attila <[email protected]> wrote:
>
> Hi
>
> I am using m02. I did not say that it is not propagated to the end. But
> there i will have many splitted messages. And i want somehow wait for the
> last one :)
> That is the task. I could naturally write(overwrite) it each time in the DB.
> But i do not want to do that if waiting for all to be processed is possible.
> Any ideas on that?
>
> Thanks
> attila
>
>
>
> Claus Ibsen-2 wrote:
>>
>>
>> What version of Camel are you using?
>>
>> I do think we have ensured that properties/headers are propagated when
>> using xslt and the likes.
>>
>> You can use the tracer to see how you message looks like while being
>> routed and where the filename is lost.
>> http://camel.apache.org/tracer
>>
>>
>> On Thu, Sep 17, 2009 at 11:19 AM, Bak Attila <[email protected]>
>> wrote:
>>>
>>> Hi,
>>>
>>> I have the following use case:
>>> I have an incoming file in xml. This will be validated, then transformed
>>> with xslt, splitted after the transformation and finally the splitted
>>> parts
>>> will be persisted into a DB.  Configured like:
>>>
>>>  from("file:src/data/generated?noop=true").convertBodyTo(String.class).to(
>>>                                "validator:someXSD.xsd").to(
>>>                                "xslt:someTrafo.xsl").split(
>>>                                xPathBuilder).bean(new
>>> DatabaseProcessor());
>>> Everything works perfect.
>>> But now i would have to store the ORIGINAL file name also into the DB.
>>> This
>>> is kinda hard since after the trafo/split i do not have the original
>>> messages any more.
>>>
>>> Can you please give me an idea, how could i wait for 1 input file to be
>>> processed fully and to log this fact somehow?
>>> (i would need it since when the same files comes again i do not need to
>>> process it any more then)
>>> Any help/idea would be appreciated!!!
>>>
>>> Thnx
>>> attila
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Waiting-for-a-splitted-file-to-be-processed-fully-tp25487843p25487843.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>> Twitter: http://twitter.com/davsclaus
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Waiting-for-a-splitted-file-to-be-processed-fully-tp25487843p25488442.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to