On Fri, Jun 20, 2014 at 5:02 PM, dagaz <[email protected]> wrote:
> HI,
>
> unfortunately this does not work. Parser throws an exception, that there is
> a failure with data format, because first symbol in the file is not MSH...
> but the <startByte>MSH...
>

Then write 5-10 lines of java code that removes the start/end bytes,
and then use the hl7 data format.
Though we could also maybe add a new option to hl7 data format, so you
can configure it to do that for you like the codec does.

> I see the solution should be to use HL7 codec in this place, but I do not
> find how to configure it for simple ftp/file components.
>
>
> --
> Pagarbiai,
> Vytautas Dagilis
> +37067715044
>
>
> On Tue, Jun 17, 2014 at 2:14 PM, dagaz [via Camel] <
> [email protected]> wrote:
>
>> We have to consume HL7v2 files from filesystem or ftp server. Most of
>> those files have startByte as in MLLP specification.
>>
>> How it would be possible to consume files and automatically skip the
>> leading/tailing bytes from the protocol? Otherwise parser is unable to
>> parse the the file.
>>
>> I saw a HL7codec, but as far as I understand it is possible to use it only
>> witn MINA/MLLP protocol. Is there any codecs for File or FTP components?
>> How should I fix this issue?
>>
>> ------------------------------
>>  If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://camel.465427.n5.nabble.com/How-to-consume-HL7-with-file-ftp-component-and-skip-startByte-tp5752422.html
>>  To start a new topic under Camel - Users, email
>> [email protected]
>> To unsubscribe from Camel - Users, click here
>> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=dGhhZ2F6QGdtYWlsLmNvbXw0NjU0Mjh8MTQxMjc3MzY4OA==>
>> .
>> NAML
>> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-to-consume-HL7-with-file-ftp-component-and-skip-startByte-tp5752422p5752638.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to