Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6712

using .transform(ack()) from camel-hl7 does not work using the scala dsl and mina

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • 2.11.0, 2.12.0
    • Future
    • camel-scala
    • None
    • linux 3.10, jboss-fuse-6.1.0

    • Unknown

    Description

      a Route defined in java like so:

      from("mina2:tcp://localhost:8888?sync=true&codec=#hl7codec").transform(ack());
      

      where hl7codec is defined in spring as

       <bean id="hl7codec" class="org.apache.camel.component.hl7.HL7MLLPCodec"/>

      returns HL7 acks as expected. However using the scala dsl:

        "mina2:tcp://localhost:8888?sync=true&codec=#hl7codec" ==> { transform(ack()) } 

      throws an exception:

      org.apache.camel.CamelException: org.apache.mina.filter.codec.ProtocolEncoderException: java.lang.IllegalArgumentException: The message to encode is not a supported type: org.apache.camel.component.hl7.AckExpression

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            maxwo Max Worgan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: