camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bart <>
Subject Apache Mina2 and HL7 listener
Date Thu, 13 Feb 2014 15:30:29 GMT
I have simple mina2 listener defined in spring bean:
<camel:endpoint id="hl7Listener"

And I'm connecting to this listener using HAPI HL7 test panel few clients. I
have also a web page that shows some statistics. I would like to show on
this page if there is any client connected with listener. I though that
since this is TCP I would be able to get somehow sessions count from
endpoint but I cannot find a way to do it in mina2. In mina (1) I found that
you can do something like:
IoAcceptor acceptor = hl7Listener.getAcceptor();
Set<IoSession> sessions =

and with sessions.size() I had count of how many clients are actually
connected to this endpoint. Besides that I was able to simply use
session.write() to write message to client. 

Is there any possibility to get sessions with Mina2Endpoint?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message