Hi

You only run the application for 1 second that is not a long time. Use
a higher sleep value to have the app run for a bit to give it a chance
to connect to the ftp server and start downloading the file(s).

On Wed, Jul 24, 2013 at 10:06 AM, life1style1
<chakravarty.sou...@gmail.com> wrote:
> Hi All,
>
> I am absolutely new to Apache Camel framework.
> I am trying to route a message from FTP to Activemq.
>
> There are no exceptions but the message is not getting delivered in
> ActiveMQ's queue.
>
> I am using the following code :
>
>                  CamelContext context = new DefaultCamelContext();
>
>                 ConnectionFactory connectionFactory = new
> ActiveMQConnectionFactory("tcp://localhost:61616");
>
>                 context.addComponent("activeMQ",
> JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
>
>                 context.addRoutes(new RouteBuilder() {
>                     public void configure() {
>
> from("ftp://nbleigftp@someserver//somefiles/password=secret";).to("activeMQ:queue:EIGIN");
>
>
>                     }
>                 });
>
>                 context.start();
>                 Thread.sleep(1000);
>                 context.stop();
>                 System.out.println("Sent");
>
>
> But when I am doing the opposite i.e routing the message from ActiveMq to
> FTP its working fine.
>
> I have used the following:
> from("activeMQ:queue:EIGIN").to("ftp://myftpserver/myFILES/?password=secret";);
>
> Please let me know what I am missing.
>
> Thanks in advance.
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Message-not-getting-delivered-from-FTP-to-Activemq-tp5736181.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to