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 the type HapiContext is not applicable for the 
arguments (int, boolean, boolean)").

A note aside. In the last email I have completely forgot to mention what 
version of HAPI I use. I have downloaded the last version of HAPI HL7v2 from 
here<https://github.com/hapifhir/hapi-hl7v2> (then yes, maybe, I use the 
version 2.3).


From: Tom Chiverton [mailto:t...@extravision.com]
Sent: martedì 13 febbraio 2018 13:20
To: hl7api-devel@lists.sourceforge.net
Subject: Re: [HAPI-devel] Receiving message

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

On 13/02/18 11:43, Lorenzo Vitali wrote:
Then, my question is if there is really a method to get all the incoming 
messages without specifies the typologies.

Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Hl7api-devel mailing list

Reply via email to