camel-users 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 Wed, 26 Dec 2012 18:55:20 GMT
Hi all,
I need to read a 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. I am working with
spring. this is file:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""

	<bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
		<property name="connectionFactory">
		<bean class="org.apache.activemq.ActiveMQConnectionFactory">
		<property name="brokerURL" value="vm://localhost" />
	<bean id="downloadLogger" class="bbr_camel.bbr_camel.DownloadLogger"/>
	<camelContext xmlns="">
			<from uri="file:Inbox?noop=true"/>
			<process ref="downloadLogger"/>
			<to uri="jms:queue:ficha"/>

call from a main,

public class FileCopierWithCamel {

	   public static void main(String args[]) throws Exception{
try {
				final ApplicationContext context = new
			} catch (Exception e) {
				System.out.println("Ex: " + e);

but does not keep in line, no errors occur, eventually not work.

anyone has any idea of ​​the problem.

Thank you.

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

View raw message