简体   繁体   English

MLLP连接

[英]MLLP connection

I am going to create a new Spring boot application to fetch HL7 messages and process it. 我将创建一个新的Spring引导应用程序以获取HL7消息并进行处理。 In some cases I need to use MLLP protocol for data transfer. 在某些情况下,我需要使用MLLP协议进行数据传输。 Can we implement the same in java? 我们可以在Java中实现相同的功能吗? Or What is the advantages of using MLLP? 或使用MLLP有什么优势?

I did it using Camel http://camel.apache.org/hl7.html 我使用骆驼http://camel.apache.org/hl7.html做到了

I have configured the camel route in this way: 我以这种方式配置了骆驼路线:

<bean id="hl7codec" class="org.apache.camel.component.hl7.HL7MLLPCodec">
    <property name="charset" value="UTF-8" />
    <property name="validate" value="false" />
</bean> 

<route>
    <from uri="mina2:tcp://10.0.0.1:2575 sync=true&amp;codec=#hl7codecDebug" />
    <log message="********* MINA2 Message received" />
    <bean ref="hl7Processor" method="removeUtf8Bom" />
    <process ref="hl7Processor" />
</route>

<bean id="hl7Processor" class="com.andreagirardi.MessageRouting.HL7.HL7Processor" />

So I have a Mina2 listner that receive the HL7 and I process the messaged using the class HL7Processor 所以我有一个接收HL7的Mina2列表器,我使用HL7Processor类处理消息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM