tags:

views:

594

answers:

0

Hello!

I'm trying the Apache Camel Tutorial JmsRemoting.

Following the examples, the proxy client works fine to template and proxy clients configuration.

But, when i change the example in order to use a JAXB transportation object xml, configuring routes with marshal and unmarshal dataformats, the situation become different.

1) When i configure client to use the producer template with jaxb, it works fine.

2) When i change to proxy configuration, it doesn't work.

The (un)marshal, in the camel-server.xml, works with Template, but doesn't work with Proxy.

 <camel:route>
  <camel:from uri="jms:queue:customers"/>   
  <camel:unmarshal ref="myJaxb"/>
  <camel:to uri="bean:ManagingCustomer"/>     
  <camel:marshal ref="myJaxb"/>
 </camel:route>

If i want my Proxy working, i have to remove the (un)marshal of the route and utilize a method in my inteface that receives a common type, such a integer or a string, but not a type generated by jaxb.

Some clues?

Tks a lot.

Ricardo.