camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cpach <>
Subject read xml file to be sent to a queue
Date Mon, 24 Dec 2012 14:59:46 GMT
Hi all,

I need to read an XML file:

<? xml version = "1.0" encoding = "UTF-8">
<name> XXXXX </ name>
<lastname> YYYYY </ lastname>
<address> ZZZZZZ </ address>
</ data>

This information needs to be stored in a queue ActiveMQ. This is the code,
but it does not work, what could be wrong? 

public class FileCopierWithCamel {

	   public static void main(String args[]) throws Exception{
		  CamelContext context = new DefaultCamelContext();
		  ConnectionFactory connectionFactory =
			   new ActiveMQConnectionFactory("vm://localhost");	   
		  context.addRoutes(new RouteBuilder(){
			  public void configure(){ from("file:Inbox?noop=true")


Someone can help me.

Thank you.

View this message in context:
Sent from the Camel Development mailing list archive at

View raw message