Can anyone help me? I can't seem to make partialClass to work. My class
doesn't have @XMLRootElement that's why i decided to give partialClass a
try, but still no luck with .marshall(jaxbDataFormat)

below is my code.

JaxbDataFormat dataFormat = new JaxbDataFormat(true);
        dataFormat.setContextPath("org.hl7.v2xml");
        dataFormat.setPartClass("org.hl7.v2xml.ORUR01CONTENT");

        from("activemq:{{tmc-emr-cdms-route.jms.destination.route}}")
            .to("log:" + SignedClinicalDocumentRouteBuilder.class.getName()
+ "?level=INFO&showAll=true")
            .beanRef("signedClinicalDocumentProcessor", "process")
            .marshal(dataFormat)
            .to("direct:endpoint");

        from("direct:endpoit")
            .to("activemq:{{tmc-emr-cdms-route.jms.destination.ORU}}");

--
View this message in context: 
http://camel.465427.n5.nabble.com/Help-with-Camel-JAXB-SMX4-Camel-2-1-0-tp470566p4563229.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to