0

I am trying to send files from sftp server to jms topic using apache Camel. Camel fails to send .xl3 files and load them to jms.

This is my route:

context.addRoutes(new RouteBuilder()
{
    // @Override
    public void configure()
    {
        //from sftp to jms
        from("sftp://root@ip//usr/data?username=root&password=****&recursive=true&binary=true&idempotent=true").process(new Processor()

        {
            public void process(Exchange exchange) throws Exception
            {
                System.out.println("Sending file: "+exchange.getIn().getHeader("CamelFileName"));

            }
        }).marshal().string("UTF-8").to("jms:topic:JMSTopic");                                       
    }
});

Camel works fine with the other types of files (.txt, .csv, .xls...), but fails with .xl3.

Tot Zam
  • 8,406
  • 10
  • 51
  • 76
Chayma Sakouhi
  • 79
  • 2
  • 10

0 Answers0