How would I replace this:
// Works
JAXBContext context = JAXBContext.newInstance("aaa.bbb.ccc");
ByteArrayInputStream input = new ByteArrayInputStream(msg.getBytes());
Unmarshaller unmarshaller = context.createUnmarshaller();
JAXBElement elm = unmarshaller.unmarshal(new StreamSource(input),
SpecialType.class);
with something like this:
// Incomplete
<route autoStartup="true" >
<from uri="weblogic:topic:TOPIC1"/>
<to uri="dataformat:jaxb:unmarshal?contextPath=aaa.bbb.ccc"/>
<process ref="SpecialProcessor"/>
</route>
That is, where do I put SpecialType.class?
--
View this message in context:
http://camel.465427.n5.nabble.com/Dataformat-jaxb-help-please-tp5739193.html
Sent from the Camel - Users mailing list archive at Nabble.com.