Re: HL7 v. 2.7 with mina2

2014-01-14 Thread Christian Ohr
In fact, HAPI does not yet support HL7 v2.7, so you will receive an exception as soon as you parse such a message. Mina itself is unaware of HL7 versions; the hl7codec just unpacks the message payload from the MLLP wrapper. The error message indicates that the trailing bytes of a MLLP frame are mi

Re: HL7 v3

2013-09-13 Thread Christian Ohr
hi, As always, the reality is somewhat complicated. HL7v3 is (unlike HL7v2) more of a modelling framework - based on a basic information model and modelling processes you design your domain models which you can then serialize into XML messages or documents or whatever. The standard defines a whole

Re: Camel Route stops processing abruptly

2013-04-05 Thread Christian Ohr
The rae-iti20 endpoint is built on top of Mina and implements an IHE ATNA record audit event actor, right? Does your application still accept ATNA audits but don't process them to the end? Or does your route come to an halt somewhere else? Like, is the BEFORE_RFC5424_QUEUE route entered, or does i

Re: HL7 Mina throwing org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.mina.common.BufferDataException

2013-01-28 Thread Christian Ohr
Hi Stan, try this ((I assume that hl7lp, hl7Port and minaLogger are properly set somewhere): from("mina:tcp://" + hl7Ip + ":" + hl7Port + "?sync=true&codec=#hl7codec&minaLogger=" + minaLogger) Registering the codec in Camel is not enough; you also need to add it as parameter to the endpoint

Re: HL7 Mina throwing org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.mina.common.BufferDataException

2013-01-25 Thread Christian Ohr
189616968 bytes may be simply too much... The normal ("original") mode of operation in HL7 is to send one message, receive the response, send the next message, receive the next response and so on. Much like HTTP, however, instead of defining the length of a request somewhere, MLLP delimits a reque

Re: HL7 component works in Eclipse IDE but not when exported to JAR

2013-01-22 Thread Christian Ohr
need to do any extra hl7 marshalling/unmarshalling on passing msgs between queues and endpoinds. etc. thanks Adam On Tue, Jan 22, 2013 at 12:49 PM, Christian Ohr wrote: To generate an acknowledgement, you can call one of the generateAcknowledgement() methods of the ca.uhn.hl7v2.model.(Abstract

Re: HL7 component works in Eclipse IDE but not when exported to JAR

2013-01-22 Thread Christian Ohr
To generate an acknowledgement, you can call one of the generateAcknowledgement() methods of the ca.uhn.hl7v2.model.(Abstract)Message class. If you like, you can also address pure/detailed HAPI questions to the HAPI mailing list (see http://hl7api.sourceforge.net/mail-lists.html), which is subscri

Re: HL7 component works in Eclipse IDE but not when exported to JAR

2013-01-21 Thread Christian Ohr
Ah now I get your point. >From your initial list of dependencies you list org.apache.servicemix.bundles.hapi 0.5.1_1. HAPI 0.5.1 was released about 6 (!) years ago, and it certainly does not match with the 2.4 structures lib of the HAPI 1.2 release. Make sure your classpath contains hapi-base-1.2

Re: HL7 component works in Eclipse IDE but not when exported to JAR

2013-01-21 Thread Christian Ohr
Did you check/debug what happens inside com.eagleriversolutions.app.erspoc.hl7v2.ProcessHl7V24Message#transformHl7Message? The "bad" log reports the error after the bean is called. cheers Christian 2013-01-20 21:58:54,878 DEBUG Camel (camel-1) thread #1 - JmsConsumer[hl7] org.apache.camel.proce

Re: [camel-mina2] Bug in default UDP codec (Mina2UdpProtocolCodecFactory)?

2012-12-03 Thread Christian Ohr
The HL7 Codec works on TCP messages, not UDP. On the other hand I don't think that the codec really depends on that. Note that HL7 messages have specific begin and end bytes that make it rather easy to cumulate the parts. Christian 2012/12/3 Claus Ibsen : > Hi > > The camel-hl7 component has a mi

Re: Groovy problem when an expression is evaluated by Camel

2012-11-19 Thread Christian Ohr
You did not include your actual Groovy expression, the Groovy version, Camel version, so it's hard to tell. There has been a thread about a seemingly similar issue at http://groovy.329449.n5.nabble.com/VirtualMachineError-OOM-in-JiT-space-at-Groovy-1-8-6-startup-td5710579.html. Maybe this help

Re: Setting ProducerServicePool in Spring Camel Context

2010-03-31 Thread christian ohr
please add a comment on that ticket about your use case. > > > > On Tue, Mar 30, 2010 at 7:04 PM, christian ohr > wrote: >> >> Hi, >> >> is there any way to configure the ProducerServicePool in a Spring Camel >> Context? The problem is that I want

Setting ProducerServicePool in Spring Camel Context

2010-03-30 Thread christian ohr
Hi, is there any way to configure the ProducerServicePool in a Spring Camel Context? The problem is that I want to reduce the number of cached producers. I tried something like this: ...

Re: HL7 ProtocolCodec truncates long HL7 messages

2009-04-27 Thread christian ohr
I attached patches (including a test) for the 1.x branch and trunk to the JIRA issue Christian Done. (https://issues.apache.org/activemq/browse/CAMEL-1566) Please note that there's no camel-hl7 component in JIRA, so I temporarily filed it under camel-mina Christian http://gforge.openehea

Re: HL7 messages become unusable after convertBodyTo(String.class)

2009-04-27 Thread christian ohr
I added a JIRA issue (https://issues.apache.org/activemq/browse/CAMEL-1568) and provided a patch for both camel-1.x branch and trunk. cheers Christian christian ohr wrote: > > Hi, me again... > > Another problem I came across: > when reading HL7 messages e.g. from a stre

Re: HL7 messages become unusable after convertBodyTo(String.class)

2009-04-24 Thread christian ohr
k, btw :) > > Cheers, > Hadrian > > On Apr 24, 2009, at 12:09 PM, christian ohr wrote: > >> >> Hi, me again... >> >> Another problem I came across: >> when reading HL7 messages e.g. from a stream, they become unusable >> after >> run

HL7 messages become unusable after convertBodyTo(String.class)

2009-04-24 Thread christian ohr
Hi, me again... Another problem I came across: when reading HL7 messages e.g. from a stream, they become unusable after running though a convertBodyTo(String.class) converter for further processing. The reason is that the converter uses the readLine() method of a BufferedReader which splits up a

Re: HL7 ProtocolCodec truncates long HL7 messages

2009-04-24 Thread christian ohr
Done. (https://issues.apache.org/activemq/browse/CAMEL-1566) Please note that there's no camel-hl7 component in JIRA, so I temporarily filed it under camel-mina Christian http://gforge.openehealth.org/gf/project/ipf/ Hi Christian No that is fantastic. We would love to incorporate your f

HL7 ProtocolCodec truncates long HL7 messages

2009-04-24 Thread christian ohr
mething similar) in the upcoming Camel release. cheers Christian Ohr http://gforge.openehealth.org/gf/project/ipf/ http://www.nabble.com/file/p23219074/HL7MLLPCodec.zip HL7MLLPCodec.zip -- View this message in context: http://www.nabble.com/HL7-ProtocolCodec-truncates-long-HL7-messages-tp2321