[HAPI-devel] Tying a received message to a connection

2016-12-06 Thread Jonny Rylands
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 b

Re: [HAPI-devel] Tying a received message to a connection

2016-12-06 Thread James Agnew
Hi Jonny, Have a look at MetadataKeys.java. These can be used as keys in the ReceivingApplication (assuming you're using ApplicationRouter) to get the originating IP and port. It's not a reference to the connection exactly but it could be used to figure it out. Cheers, James On Tue, Dec 6, 2016

Re: [HAPI-devel] Tying a received message to a connection

2016-12-06 Thread Jonny Rylands
James – many thanks for your help. Regards Jonny From: James Agnew Date: Tuesday, 6 December 2016 at 16:00 To: Jonny Rylands Cc: "hl7api-devel@lists.sourceforge.net" Subject: Re: [HAPI-devel] Tying a received message to a connection Hi Jonny, Have a look at MetadataKeys.java. These can be us