camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: files disappeared between 2 routes
Date Wed, 22 May 2013 12:45:39 GMT
splitter will aggregate results by default:

see the section "what splitter returns" at this wiki..
http://camel.apache.org/splitter.html

could this be what you're seeing?


On Wed, May 22, 2013 at 2:13 AM, emmanuel <etrainea@bouyguestelecom.fr>wrote:

> Hello,
>
> I have a problem (used camel version: 2.8.4) between 2 routes :
>
> I used a process java bean in a splitter : I have one big file on entry
> (around 2GB), make some processes on file and create 2 files with the
> splitter on exit.
>
> At the end of the splitter I have to push the files on file endpoint.
>
> But, between my splitter and the file endpoint my files disappeared and
> there is no errors on logs...
>
> Any idea ?
>
> To solve the problem, I've added a choice process to push the new files
> (with the new name) but it's not a right way for me...
>
>
> My code then :
>
> <camel:route id="ROUTE_OUT_DATALAB_ACTE_SPLIT">
> <camel:from ref="EP_OUT_DATALAB_ACTE_SPLIT" />
> <camel:threads>
> <camel:choice>
> <camel:when>
>         <camel:simple>${file:onlyname} regex
> '^REFCLIENT_ACTE_EXTRACT_ACTE_.*$'</camel:simple>
>         <camel:process ref="EP_OUT_DATALAB_ACTE_TRAITEMENT_PROCESSOR" />
>         <camel:split>
>                 <camel:method
> bean="EP_OUT_DATALAB_ACTE_SPLITTER_PROCESSOR"/>
>                 <camel:to ref="EP_OUT_DATALAB_ACTE_TRANSFERT" />
>         </camel:split>
> </camel:when>
> <camel:when>
>         <camel:simple>${file:onlyname} regex
> '^Extract_COL_.*$'</camel:simple>
>         <camel:to ref="EP_OUT_DATALAB_ACTE_TRANSFERT" />
> </camel:when>
> <camel:otherwise>
>          <camel:rollback message = "Traitement DATALAB_ACTE : pas de regle
> trouvee pour le fichier"/>
> </camel:otherwise>
> </camel:choice>
> </camel:threads>
> </camel:route>
>
> and :
>
> <camel:endpoint id="EP_OUT_DATALAB_ACTE_TRANSFERT"
>
>
> uri="file:///${DATA_PATH}/MDF/OUT/DATALAB/ACTE/TRANSFERT?filter=#EP_OUT_DATALAB_ACTE_TRANSFERT_FILTRE"
> />
>
>
> Thank you!
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/files-disappeared-between-2-routes-tp5732950.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

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