Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EDA46C24A for ; Fri, 9 Jan 2015 10:22:36 +0000 (UTC) Received: (qmail 19648 invoked by uid 500); 9 Jan 2015 10:22:38 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 19596 invoked by uid 500); 9 Jan 2015 10:22:38 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 19587 invoked by uid 99); 9 Jan 2015 10:22:38 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2015 10:22:38 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 0114BAC010E for ; Fri, 9 Jan 2015 10:22:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r935579 - in /websites/production/camel/content: book-component-appendix.html book-in-one-page.html cache/main.pageCache hl7.html Date: Fri, 09 Jan 2015 10:22:36 -0000 To: commits@camel.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150109102238.0114BAC010E@hades.apache.org> Author: buildbot Date: Fri Jan 9 10:22:35 2015 New Revision: 935579 Log: Production update by buildbot for camel Modified: websites/production/camel/content/book-component-appendix.html websites/production/camel/content/book-in-one-page.html websites/production/camel/content/cache/main.pageCache websites/production/camel/content/hl7.html Modified: websites/production/camel/content/book-component-appendix.html ============================================================================== --- websites/production/camel/content/book-component-appendix.html (original) +++ websites/production/camel/content/book-component-appendix.html Fri Jan 9 10:22:35 2015 @@ -1360,11 +1360,11 @@ template.send("direct:alias-verify&

The cxf: component provides integration with Apache CXF for connecting to JAX-WS services hosted in CXF.

+/*]]>*/

  • CXF Component
    • URI format
    • Options
      • The descriptions of the dataformats @@ -4854,7 +4854,7 @@ hibernate:[entityClassName][?options]

        See Also

        -

        HL7 Component

        The HL7 component is used for working with the HL7 MLLP protocol and HL7 v2 messages using the HAPI library.

        This component supports the following:

        • HL7 MLLP codec for Mina
        • HL7 MLLP codec for Netty4 from Camel 2.15 onwards
        • Type Converter from/to HAPI and String
        • HL7 DataFormat using the HAPI library

        Maven users will need to add the following dependency to their pom.xml for this component:

        +

        HL7 Component

        The HL7 component is used for working with the HL7 MLLP protocol and HL7 v2 messages using the HAPI library.

        This component supports the following:

        • HL7 MLLP codec for Mina
        • HL7 MLLP codec for Netty4 from Camel 2.15 onwards
        • Type Converter from/to HAPI and String
        • HL7 DataFormat using the HAPI library

        Maven users will need to add the following dependency to their pom.xml for this component:

        -

        HL7 MLLP protocol

        HL7 is often used with the HL7 MLLP protocol, which is a text based TCP socket based protocol. This component ships with a Mina and Netty4 Codec that conforms to the MLLP protocol so you can easily expose an HL7 listener accepting HL7 requests over the TCP transport layer. To expose a HL7 listener service, the camel-mina2 or camel-netty4 component is used with the HL7MLLPCodec (mina2) or HL7MLLPConfig (Netty4) as codec.

        The HL7 MLLP codec has the following options:

        Name

        Default Value

        Description

        startByte

        0x0b

        The start byte spanning the HL7 payload.

        endByte1

        0x1c

        The first end byte spanning the HL7 payload.

        endByte2

        0x0d

        The 2nd end byte spanning the HL7 payload.

        charset

        JVM Default

        The encoding (a charset name) to use for the codec. If not provided, Camel will use the JVM default Charset.

        produceStringtrue(Camel 2.14.1) If true, the codec creates a string using the defined charset. If false, the codec sends a plain byte array into the route, so that the HL7 Data Format can determine the actual charset from the HL7 message content.
        convertLFtoCRfalseWill convert \n to \r (0x0d, 13 decimal) as HL7 stipulates \r as segment terminators. The HAPI library requires the use of \r.

        Exposing an HL7 listener using Mina

        In the Spring XML file, we configure a mina2 endpoint to listen for HL7 requests using TCP on port 8888:

        -

        sync=true indicates that this listener is synchronous and therefore will return a HL7 response to the caller. The HL7 codec is setup with codec=#hl7codec. Note that hl7codec is just a Spring bean ID, so it could be named mygreatcodecforhl7 or whatever. The codec is also set up in the Spring XML file:

        The endpoint hl7listener can then be used in a route as a consumer, as this Java DSL example illustrates:

        -

        This is a very simple route that will listen for HL7 and route it to a service named patientLookupService. This is also Spring bean ID, configured in the Spring XML as:

        +

        Exposing an HL7 listener using Netty (available as of Camel 2.15)

        In the Spring XML file, we configure a netty4 endpoint to listen for HL7 requests using TCP on port 8888:

        + +

        sync=true indicates that this listener is synchronous and therefore will return a HL7 response to the caller. The HL7 codec is setup with encoder=#hl7encoder and decoder=#hl7decoder. Note that hl7encoder and hl7decoder are just bean IDs, so it could be named differently. The beans can be set in the Spring XML file:

        + +

        The endpoint hl7listener can then be used in a route as a consumer, as this Java DSL example illustrates:

        +

        HL7 Model using java.lang.String or byte[]

        The HL7 MLLP codec uses plain String as its data format. Camel uses its Type Converter to convert to/from strings to the HAPI HL7 model objects, but you can use the plain String objects if you prefer, for instance if you wish to parse the data yourself.

        As of Camel 2.14.1 you can also let the codec use a plain byte[] as its data format. The Type Converter is also capable of converting the byte[] to/from HAPI HL7 model objects.

        HL7v2 Model using HAPI

        The HL7v2 model uses Java objects from the HAPI library. Using this library, you can encode and decode from the EDI format (ER7) that is mostly used with HL7v2.

        The sample below is a request to lookup a patient with the patient ID 0101701234.< /p>

        -

        HL7 MLLP protocol

        HL7 is often used with the HL7 MLLP protocol, which is a text based TCP socket based protocol. This component ships with a Mina and Netty4 Codec that conforms to the MLLP protocol so you can easily expose an HL7 listener accepting HL7 requests over the TCP transport layer. To expose a HL7 listener service, the camel-mina2 or camel-netty4 component is used with the HL7MLLPCodec (mina2) or HL7MLLPConfig (Netty4) as codec.

        The HL7 MLLP codec has the following options:

        Name

        Default Value

        Description

        startByte

        0x0b

        The start byte spanning the HL7 payload.

        endByte1

        0x1c

        The first end byte spanning the HL7 payload.

        endByte2

        0x0d

        The 2nd end byte spanning the HL7 payload.

        charset

        JVM Default

        The encoding (a charset name) to use for the codec. If not provided, Camel will use the JVM default Charset.

        produceStringtrue(Camel 2.14.1) If true, the codec creates a string using the defined charset. If false, the codec sends a plain byte array into the route, so that the HL7 Data Format can determine the actual charset from the HL7 message content.
        convertLFtoCRfalseWill convert \n to \r (0x0d, 13 decimal) as HL7 stipulates \r as segment terminators. The HAPI library requires the use of \r.

        Exposing an HL7 listener using Mina

        In the Spring XML file, we configure a mina2 endpoint to listen for HL7 requests using TCP on port 8888:

        -

        sync=true indicates that this listener is synchronous and therefore will return a HL7 response to the caller. The HL7 codec is setup with codec=#hl7codec. Note that hl7codec is just a Spring bean ID, so it could be named mygreatcodecforhl7 or whatever. The codec is also set up in the Spring XML file:

        The endpoint hl7listener can then be used in a route as a consumer, as this Java DSL example illustrates:

        -

        This is a very simple route that will listen for HL7 and route it to a service named patientLookupService. This is also Spring bean ID, configured in the Spring XML as:

        +

        Exposing an HL7 listener using Netty (available as of Camel 2.15)

        In the Spring XML file, we configure a netty4 endpoint to listen for HL7 requests using TCP on port 8888:

        + +

        sync=true indicates that this listener is synchronous and therefore will return a HL7 response to the caller. The HL7 codec is setup with encoder=#hl7encoder and decoder=#hl7decoder. Note that hl7encoder and hl7decoder are just bean IDs, so it could be named differently. The beans can be set in the Spring XML file:

        + +

        The endpoint hl7listener can then be used in a route as a consumer, as this Java DSL example illustrates:

        +

        HL7 Model using java.lang.String or byte[]

        The HL7 MLLP codec uses plain String as its data format. Camel uses its Type Converter to convert to/from strings to the HAPI HL7 model objects, but you can use the plain String objects if you prefer, for instance if you wish to parse the data yourself.

        As of Camel 2.14.1 you can also let the codec use a plain byte[] as its data format. The Type Converter is also capable of converting the byte[] to/from HAPI HL7 model objects.

        HL7v2 Model using HAPI

        The HL7v2 model uses Java objects from the HAPI library. Using this library, you can encode and decode from the EDI format (ER7) that is mostly used with HL7v2.

        The sample below is a request to lookup a patient with the patient ID 0101701234.

        -

        HL7 MLLP protocol

        HL7 is often used with the HL7 MLLP protocol, which is a text based TCP socket based protocol. This component ships with a Mina and Netty4 Codec that conforms to the MLLP protocol so you can easily expose an HL7 listener accepting HL7 requests over the TCP transport layer. To expose a HL7 listener service, the camel-mina2 or camel-netty4 component is used with the HL7MLLPCodec (mina2) or HL7MLLPConfig (Netty4) as codec.

        The HL7 MLLP codec has the following options:

        Name

        Default Value

        Description

        startByte

        0x0b

        The start byte spanning the HL7 payload.

        endByte1

        0x1c

        The first end byte spanning the HL7 payload.

        endByte2

        0x0d

        The 2nd end byte spanning the HL7 payload.

        charset

        JVM Default

        The encoding (a charset name) to use for the codec. If not provided, Camel will use the JVM default Charset.

        produceStringtrue(Camel 2.14.1) If true, the codec creates a string using the defined charset. If false, the codec sends a plain byte array into the route, so that the HL7 Data Format can determine the actual charset from the HL7 message content.
        convertLFtoCRfalseWill convert \n to \r (0x0d, 13 decimal) as HL7 stipulates \r as segment terminators. The HAPI library requires the use of \r.

        Exposing an HL7 listener using Mina

        In the Spring XML file, we configure a mina2 endpoint to listen for HL7 requests using TCP on port 8888:

        -

        sync=true indicates that this listener is synchronous and therefore will return a HL7 response to the caller. The HL7 codec is setup with codec=#hl7codec. Note that hl7codec is just a Spring bean ID, so it could be named mygreatcodecforhl7 or whatever. The codec is also set up in the Spring XML file:

        The endpoint hl7listener can then be used in a route as a consumer, as this Java DSL example illustrates:

        -

        This is a very simple route that will listen for HL7 and route it to a service named patientLookupService. This is also Spring bean ID, configured in the Spring XML as:

        +

        Exposing an HL7 listener using Netty (available as of Camel 2.15)

        In the Spring XML file, we configure a netty4 endpoint to listen for HL7 requests using TCP on port 8888:

        + +

        sync=true indicates that this listener is synchronous and therefore will return a HL7 response to the caller. The HL7 codec is setup with encoder=#hl7encoder and decoder=#hl7decoder. Note that hl7encoder and hl7decoder are just bean IDs, so it could be named differently. The beans can be set in the Spring XML file:

        + +

        The endpoint hl7listener can then be used in a route as a consumer, as this Java DSL example illustrates:

        +

        HL7 Model using java.lang.String or byte[]

        The HL7 MLLP codec uses plain String as its data format. Camel uses its Type Converter to convert to/from strings to the HAPI HL7 model objects, but you can use the plain String objects if you prefer, for instance if you wish to parse the data yourself.

        As of Camel 2.14.1 you can also let the codec use a plain byte[] as its data format. The Type Converter is also capable of converting the byte[] to/from HAPI HL7 model objects.

        HL7v2 Model using HAPI

        The HL7v2 model uses Java objects from the HAPI library. Using this library, you can encode and decode from the EDI format (ER7) that is mostly used with HL7v2.

        The sample below is a request to lookup a patient with the patient ID 0101701234.