Hi !
I migrate a little project from Spring to Aries but i have a problem with my
Camel route and XStream.
This route works with Spring :
public class MyFirstRoute extends SpringRouteBuilder {
@Override
public void configure() throws Exception {
from("vm:repo").unmarshal().xstream()
.to("bean:supplyService?method=auto").marshal().xstream()
.to(ExchangePattern.InOnly, "vm:repoSupply");
}
}
This route doesn't work with Aries :
public class MySecondRoute extends RouteBuilder {
@Override
public void configure() throws Exception {
from("vm:repo").unmarshal().xstream()
.to("bean:supplyService?method=auto").marshal().xstream()
.to(ExchangePattern.InOnly, "vm:repoSupply");
}
}
My Exception :
Failed delivery for exchangeId: xxxxxxxxxxxxxxxxxxxxxxx
Exhausted after delivery attempt: 1 caught:
com.thoughtworks.xstream.mapper.CannotResolveClassException: com.zyx.MyCLass
My Message :
<com.zyx.MyCLass>
<date>2011-11-28 09:17:00.0 CET</date>
<name>r20100817-023310.tar.gz</name>
<size>376</size>
<flux>Cass</flux>
<type>delete</type>
</com.zyx.MyCLass>
Thanks,
Damien
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-XStream-works-with-Spring-but-not-with-Aries-tp5038674p5038674.html
Sent from the Camel - Users mailing list archive at Nabble.com.