META-INF.spring.route-context.xml Maven / Gradle / Ivy
<!-- Copyright 2009 the original author or authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel="http://camel.apache.org/schema/spring" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> <camel:camelContext id="camelContext"> <camel:jmxAgent id="agent" disabled="true" /> <camel:routeBuilder ref="routeBuilder"/> </camel:camelContext> <bean id="routeBuilder" class="org.openehealth.ipf.tutorials.osgi.ihe.pixv3.iti44.route.GroovyRouteBuilder"> <property name="pixFeedRequestTranslator" ref="pixFeedRequestTranslator" /> <property name="pixFeedAckTranslator" ref="pixFeedAckTranslator" /> </bean> <bean id="pixFeedRequestTranslator" class="org.openehealth.ipf.commons.ihe.hl7v3.translation.PixFeedRequest3to2Translator"> <property name="useSenderDeviceName" value="true" /> <property name="useReceiverDeviceName" value="true" /> <property name="copyEmailAs" value="PID-13-1" /> <property name="copyAccountNumberAs" value="PID-18" /> <property name="accountNumberRoot" value="1.2.3" /> <property name="copyNationalIdentifierAs" value="PID-19" /> <property name="nationalIdentifierRoot" value="2.16.840.1.113883.4.1" /> <property name="birthNameCopyTo" value="PID-5" /> <property name="useOtherIds" value="true" /> </bean> <bean id="pixFeedAckTranslator" class="org.openehealth.ipf.commons.ihe.hl7v3.translation.PixFeedAck2to3Translator"> <property name="ackCodeFirstCharacter" value="C" /> </bean> <bean id="hl7codec" class="org.apache.camel.component.hl7.CustomHL7MLLPCodec"> <property name="charset" value="utf-8"/> </bean> </beans>