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 subscribed by more HAPI users than this list. Christian 2013/1/22 StanZ <[email protected]>: > Thanks Christian. > > I confirmed the hapi-base-1.2.jar was in the exported JAR lib. But > removing org.apache.servicemix.bundles.hapi 0.5.1_1 as you suggested > seems to have fixed the issue. It now works when I ran the program from > the JAR as well as from Eclipse. > > I used the servicemix based off the code sample from Roger Searjeant's > post from 2009 at > http://searjeant.blogspot.com/2009/02/camel-routes-and-hl7.html. > He has a code sample to generate an ACK based on the HL7 message. > The SourceGenerator uses ServiceMix. I searched but could not find a > recent code sample for generating an ACK from the message. The Camel > site has one but is for 2.11 which doesn't work in my 2.10.3 code. I also > viewed the HAPI site but didn't find what I'm needing. > > Any recommendations on how to create the ACK similar to Roger's 2009 post > using the received HL7 message/version as the basis? > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/HL7-component-works-in-Eclipse-IDE-but-not-when-exported-to-JAR-tp5725936p5725955.html > Sent from the Camel - Users mailing list archive at Nabble.com.
