Não estou conseguindo fazer este exemplo, o que estou fazendo de errado? Log abaixo:
public void configure() throws Exception {
final XStream xstream = new XStream();
xstream.alias("negociacao", Negociacao.class);
from("timer://negociacoes?fixedRate=true&delay=3s&period=360s")
.to("http4://argentumws.caelum.com.br/negociacoes?"+ proxy)
.convertBodyTo(String.class)
.unmarshal(new XStreamDataFormat("xstream"))
.split(body())
.log("${body}")
.end();
}
});
LOG:
---- Debugging information ----
message : negociacao
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : negociacao
class : java.util.ArrayList
required-type : java.util.ArrayList
converter-type : com.thoughtworks.xstream.converters.collections.CollectionConverter
path : /list/negociacao
line number : 2
version : 1.4.8
-------------------------------