I was initially thinking you wanted the client to connect and we publish an application event as a result of the connection. We don't currently support that, but it wouldn't be too difficult to do that. Open a JIRA if you wish.
However, you then went on to say that the "...client sends it's ID when it connects...".
Can't you use the reception of that message as a stimulus for the event? Simply capture the ip_connection_id header from that message and insert it into any message(s) you wish to send.
Use collaborating channel adapters rather than a gateway (receive the ID on an inbound adapter and send the message(s) to the oubound adapter, after enriching the header with the connection id.
Last edited by Gary Russell; Jan 18th, 2012 at 11:18 AM.
Gary P. Russell
Spring Integration Team
SpringSource, a division of VMware