Re: [HAPI-devel] Receiving message

2018-02-13 Thread Lorenzo Vitali
Thanks, Tom. Now, I proceed to see what I can do with your information. Thanks again, Lorenzo. From: Tom Chiverton [mailto:[email protected]] Sent: martedì 13 febbraio 2018 15:48 To: Lorenzo Vitali; [email protected] Subject: Re: [HAPI-devel] Receiving message My mistake. I

Re: [HAPI-devel] Receiving message

2018-02-13 Thread Lorenzo Vitali
Sorry, but I don't understand. I have downloaded this version (2.3) on 22 january, 2018. I have to download it again (for possibly change)? Thanks, Lorenzo. From: Tom Chiverton [mailto:[email protected]] Sent: martedì 13 febbraio 2018 15:25 To: [email protected] Subject: Re:

Re: [HAPI-devel] Receiving message

2018-02-13 Thread Tom Chiverton
My mistake. It's not in 2.3 (this is too old). It's in 2.4 - https://github.com/hapifhir/hapi-hl7v2/pull/2 I built my own version of hapi-base which confused me. You should be able to do similarly. Tom On 13/02/18 14:35, Lorenzo Vitali wrote: Sorry, but I don’t understand. I have download

Re: [HAPI-devel] Receiving message

2018-02-13 Thread Lorenzo Vitali
Hi Tom. Thanks for your reply. Unfortunately, your suggest seems to not work correctly. Compiling my code with Eclipse, I get an error message about the utilize of newServer for the passage of the last parameter in the method (this is the error message: "The method newServer(int, boolean) in t

Re: [HAPI-devel] Receiving message

2018-02-13 Thread Tom Chiverton
Your message indicates you don't have the updated class. Tom On 13/02/18 14:24, Lorenzo Vitali wrote: Hi Tom. Thanks for your reply. Unfortunately, your suggest seems to not work correctly. Compiling my code with Eclipse, I get an error message about the utilize of newServer for the passa

[HAPI-devel] SimpleServer after two exceptions it stops managing new connections

2018-02-13 Thread Vicente Javier Gonzalez Llobet
Hi at all, I have a problem and I don't know why it happends. I try explain it in Github https://github.com/hapifhir/hapi-hl7v2/issues/11 Thanks for your help, Javi.-- Check out the vibrant tech community on one of th

Re: [HAPI-devel] Receiving message

2018-02-13 Thread Tom Chiverton
Yes, this was added in v2.3. You construct a context as normal, then use   HL7Service server = context.newServer(port, useTls, acceptAll); // e.g. 3456, false, true The receiver application class can then return true directly from canProcess() and all messages arrive to processMessage(

[HAPI-devel] Receiving message

2018-02-13 Thread Lorenzo Vitali
Hi at all. I need some help about the technique of receiving messages. In this page (https://hapifhir.github.io/hapi-hl7v2/xref/ca/uhn/hl7v2/examples/SendAndReceiveAMessage.html, line 87) I have read that exist a method to get all the incoming messages without specifies the typologies. Unfortu