I am trying to receive an Application Acknowledgement with HAPI. I send the original message using HAPI, HAPI handles the Commit ACK, but then I want to receive the App ACK on a different listener port (using an HL7Service). But HAPI currently swallows the App ACK with a message like this:
ca.uhn.hl7v2.app.Receiver - Unexpected Message Received. This message appears to be an acknowledgement (MSA-2 has a value) so it will be ignored
I can see no way of actually having my application code receive the message with HL7Service.
Here's a patch I used locally to get the app ACKs to my application.
also see #65