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...

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] <
ml-node+s465427n5752422...@n5.nabble.com> 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
> ml-node+s465427n465428...@n5.nabble.com
> 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.

Reply via email to