Re: [HAPI-devel] Callback

2009-06-22 Thread Asanka Abeysinghe
Hi, Any one has a workaround for the following scenario. Thx - Asanka Asanka Abeysinghe wrote: Hi James, Basically I want to get the output stream from the server socket and pass it to another process to construct the ack and response. So basically the callback will not return an

Re: [HAPI-devel] Callback

2009-06-02 Thread Asanka Abeysinghe
Hi James, Basically I want to get the output stream from the server socket and pass it to another process to construct the ack and response. So basically the callback will not return an Message out. Any workaround ? Thx - Asanka James Agnew wrote: Hi Asanka, I'm not sure I under

[HAPI-devel] Callback

2009-05-30 Thread Asanka Abeysinghe
Hi, In the default usage of HAPI once we register a callback it is must to return the ACK on the same channel. I need to process the message and ACK later. Is there a way to do that and is it possible to get the output stream we need to response from the API. Thx - Asanka

Re: [HAPI-devel] Code Gen

2009-05-26 Thread Asanka Abeysinghe
Hi James, Thank you for the prompted answer. I want to deploy the HAPI libraries to a repo (not the local m2 repo) So i want to use mvn deploy , will the mvn -P CORE deploy will deploy the core and the hl7-structures-v* libraries. - Asanka James Agnew wrote: Hi Asanka, The JDBC URL is a

[HAPI-devel] Code Gen

2009-05-25 Thread Asanka Abeysinghe
d line, specify: '-Dsourcegen.jdbcUrl.old=VALUE' why we need a jdbc url , is it the place that the message specifications pick ? How do I configure this. Regards Asanka Asanka Abeysinghe wrote: > Hi , > I'm getting the error 'The plugin 'ca.uhn.hapi:hapi-sourcegen' d

Re: [HAPI-devel] Error message handling

2009-05-25 Thread Asanka Abeysinghe
Hi , I'm getting the error 'The plugin 'ca.uhn.hapi:hapi-sourcegen' does not exist or no valid version could be found' , what is the mojo repo I should use? I'm using the original pom files in

[HAPI-devel] Mandatory fields to parse a message

2009-05-22 Thread Asanka Abeysinghe
Hi, Is there any material that describes the mandatory fields required to parse a HL7 message by using HAPI api. Thx - Asanka -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of

Re: [HAPI-devel] Error message handling

2009-05-21 Thread Asanka Abeysinghe
Thanks James, it works. It seems I need some information about the original request message to construct the ACK. - Asanka James Agnew wrote: I'm probably be missing something, but you should be able to do it the same way you'd construct any other message. I.e: ACK ack

Re: [HAPI-devel] Error message handling

2009-05-21 Thread Asanka Abeysinghe
ssage from the scratch. - Asanka Roger Searjeant wrote: I have posted a short piece (+ code) on ACK/NAKs in HAPI, see: http://searjeant.blogspot.com/2009/02/camel-hl7-hapi-and-nak-messages.html http://searjeant.blogspot.com/2009/02/camel-hl7-hapi-and-nak-messages.html Hope this is some he

Re: [HAPI-devel] HL7 Ack

2009-05-21 Thread asanka
huzaifa.kamal wrote: > > Hey Can somebody help me in generating a HL7 ack using HAPI. > > I have a application A which receives a HL7 msg. and generate an ACk for > it can u plz help me in it... i m new to this HAPI domain. > You can use the following code snippet to create an ack.

[HAPI-devel] Error message handling

2009-05-20 Thread Asanka Abeysinghe
Hi, How do we handle Errors, using a ACK with a ERR segment ? what is the support for this in HAPI library. Regards Asanka -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing

Re: [HAPI-devel] SimpleServer status

2009-05-19 Thread Asanka Abeysinghe
+1 for isRunning(), - Asanka James Agnew wrote: I agree 100%. There are now two methods that provide the same functionality (keepRunning() and isRunning()). I've deprecated the former and added some javadoc to explain the change. Certainly prevailing conventions would dictate tha

Re: [HAPI-devel] SimpleServer status

2009-05-19 Thread Asanka Abeysinghe
Hi Erik, I missed your reply, is the application you built in the trunk ? - Asanka Erik Gfesser wrote: Asanka, Please see the attached reply I recently provided to Peter Gershkovich. No, HAPI does not provide JMX support at this point in time. I needed to provide custom development in

Re: [HAPI-devel] SimpleServer status

2009-05-19 Thread Asanka Abeysinghe
Getting JMX support implemented to the server is the ideal solution, do we already have JMX support for HAPI ? (Sorry I'm new to the library). If you want to use a WEB interface why not use Monit, that will do all the operations you required and provide a nice UI. > - Asanka > Peter