{
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.