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 downloaded this version (2.3) on 22 january, 2018. I have to download it again (for possibly change)?

Thanks,

Lorenzo.

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

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

    Thanks,

    Lorenzo.

    *From:*Tom Chiverton [mailto:t...@extravision.com]
    *Sent:* martedì 13 febbraio 2018 13:20
    *To:* hl7api-devel@lists.sourceforge.net
    <mailto: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().

    Tom

    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.


    ______________________________________________________________________
    This email has been scanned by the Symantec Email Security.cloud
    service.
    For more information please visit http://www.symanteccloud.com
    ______________________________________________________________________


______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

------------------------------------------------------------------------------
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
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to