You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Ishada <ab...@gmail.com> on 2015/10/20 16:23:55 UTC
File to JMS queue not working
{
CamelContext context = new DefaultCamelContext();
ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(
"tcp://localhost:61616");
context.addComponent("jms",
JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
context.addRoutes(new RouteBuilder() {
public void configure() {
// from("jms:test").process(new Processor() {
// public void process(Exchange exchange) {
// System.out.println("Hello ");
// System.out.println(exchange.getIn().getHeader(
// "CamelFileName"));
// }
// }).to("file:C:/users/abhishek.singh/Desktop/data/outbox");
from("file:C:/users/abhishek.singh/Desktop/data/inbox?noop=true").to(
"jms:test");
}
});
context.start();
Thread.sleep(20000);
context.stop();
}
The folder contains text files. Also the commented code works well, I am
able to fetch data from jms queue to file system but the reverse is not
working. please help.
--
View this message in context: http://camel.465427.n5.nabble.com/File-to-JMS-queue-not-working-tp5772904.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: File to JMS queue not working
Posted by yogu13 <yo...@gmail.com>.
Hi,
Do you see anything comming up on logs ? if yes please share that.
Regards,
-Yogesh
--
View this message in context: http://camel.465427.n5.nabble.com/File-to-JMS-queue-not-working-tp5772904p5772923.html
Sent from the Camel - Users mailing list archive at Nabble.com.