camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kosalads <>
Subject Apache Camel - war project How to process the Queue and set to another queue?
Date Mon, 30 Sep 2013 10:44:11 GMT
I have done a small app which connect to the camel war and do the processing
and set to another queue. However, when I process sample xml files it does
goes to the relevant queues and process. Unfortunately, when I use Bean
Object via camel It doesnt get updated in the 2nd queue.

If I explain bit more , This is how I have configured in the application
context which is in the camel war deployed in Jetty server.

    <camelContext xmlns="">
            <from uri="activemq:inQ" />
            <to uri="activemq:outQ" />

    <bean id="activemq"
        <property name="brokerURL" value="tcp://localhost:61616" />

    <camelContext xmlns="">
            <from uri="activemq:outQ" />

I have crated three applications.

1. Standalone application which connect to the camel war and send the Pojo
Class to the Queue (inQ). 
2. Camel war application which has above configuration. So when I pass the
Bean Object to the inQ it should send to the outQ
   (Based on above configuration)
3. There is another application which reads the outQ and try to retrieve
Bean Object.

So what happens is that I could send the Pojo bean to the inQ but it doesnt
seems to be route to the outQ. So when I try to read from the outQ the queue
is empty.

Could you please let me know how we can handle above scenario and what is
the best way to handle this.

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

View raw message