Hi

I dont think its a good idea to use java beans over JMS. Then you have
a tight coupling with java code as message format. You would need to
have the same .class files on both the sender and receiver side.

Can you not use text messages or use some neutral binary format.

If you still want java beans, then make sure to have same .class files
on both sides (in both WARs etc)

On Mon, Sep 30, 2013 at 12:44 PM, kosalads <kosal...@gmail.com> wrote:
> 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="http://camel.apache.org/schema/spring";>
>         <route>
>             <from uri="activemq:inQ" />
>             <to uri="activemq:outQ" />
>         </route>
>     </camelContext>
>
>     <bean id="activemq"
> class="org.apache.activemq.camel.component.ActiveMQComponent">
>         <property name="brokerURL" value="tcp://localhost:61616" />
>     </bean>
>
>
>     <camelContext xmlns="http://camel.apache.org/schema/spring";>
>         <route>
>             <from uri="activemq:outQ" />
>         </route>
>     </camelContext>
>
> 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: 
> http://camel.465427.n5.nabble.com/Apache-Camel-war-project-How-to-process-the-Queue-and-set-to-another-queue-tp5740524.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to