Anyone who can help with this one? below is my code. thanks!
private static final String CONVERSION_ENDPOINT =
"seda:CONVERSION_ENDPOINT";
@Override
public void configure() throws Exception {
JaxbDataFormat dataFormat = new JaxbDataFormat(true);
dataFormat.setContextPath("org.hl7.v2xml");
dataFormat.setPartClass("org.hl7.v2xml.ORUR01CONTENT");
dataFormat.setEncoding("UTF-8");
from("activemq:{{tmc-emr-cdms-route.jms.destination.route}}")
.to("log:" + SignedClinicalDocumentRouteBuilder.class.getName()
+ "?level=INFO&showAll=true")
.beanRef("signedClinicalDocumentProcessor", "process")
.marshal(dataFormat)
.to(CONVERSION_ENDPOINT);
from(CONVERSION_ENDPOINT)
.to("activemq:{{tmc-emr-cdms-route.jms.destination.ORU}}");
}
--
View this message in context:
http://camel.465427.n5.nabble.com/Unable-to-marshal-type-org-hl7-v2xml-ORUR01CONTENT-as-an-element-because-it-is-missing-an-XmlRootElen-tp4563149p4563149.html
Sent from the Camel - Users mailing list archive at Nabble.com.