4 Replies Latest reply on Oct 7, 2010 10:17 PM by Freeman(Yue) Fang

    Camel File connector - Read a file on demand

    jc Souvignet Newbie



      fuse-version : 4.3.0-fuse-00-00

      camel-version : 2.4.0-fuse-00-00


      I would like to attach a specified file in a process.


      In message exchange, I have the file name in parameter.

      I would like to consume the file and attach it, as attachment, in the exchange.


      I try this :

      ConsumerTemplate consume = arg0.getContext().createConsumerTemplate();

      Endpoint epRepo = arg0.getContext().getEndpoint("file:D:/Repository/endpointCha");


      But I don't know how to set the file name before consume by




      Do there are a solution to this use case ?


      Thanks in advance