Package org.apache.camel.component.hl7

Examples of org.apache.camel.component.hl7.HL7RouteTest$MyHL7BusinessLogic


    /**
     * The Camel route is configured via this method.  The from endpoint is required to be a SwitchYard service.
     */
    public void configure() {
        DataFormat hl7 = new HL7DataFormat();       
        from("switchyard://HL7Route")
            .unmarshal(hl7)
             .process(new Processor() {
                @Override
                public void process(Exchange exchange) throws Exception {
View Full Code Here


   

    public void testSendA19() throws Exception {

        SimpleRegistry registry = new SimpleRegistry();
        HL7MLLPCodec codec = new HL7MLLPCodec();
        codec.setCharset("iso-8859-1");
        codec.setConvertLFtoCR(true);

        registry.put("hl7codec", codec);
        CamelContext camelContext = new DefaultCamelContext(registry);
        camelContext.start();
        ProducerTemplate template = camelContext.createProducerTemplate();
View Full Code Here

TOP

Related Classes of org.apache.camel.component.hl7.HL7RouteTest$MyHL7BusinessLogic

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.