From: Jonny R. <jon...@vi...> - 2016-12-06 13:01:58
|
Hi folks I have a small HAPI based server application to receive messages and forward them to another destination. I was wondering, is there a way to tie together Connections that are notified to the ConnectionListener with Messages that are notified to the ReceivingApplication? I’d like to be able to record a set of messages that were received against a particular connection. I’m configuring the receiving service in a standard way: HapiContext context = new DefaultHapiContext(); HL7Service service = context.newServer(channel.getPortNumber(), channel.isUseTls()); service.registerApplication("*", "*", new Hl7ReceivingApplication()); service.registerConnectionListener(new Hl7ConnectionListener()); service.setExceptionHandler(new Hl7ExceptionHandler()); service.startAndWait(); Many thanks Jonny |