Hi, I think you need the IoService [1] in Mina2 to get to the sessions. As far as I know the camel-mina2 component doesn't expose this. But as Claus suggested you're welcome to expand the component with said functionality and contribute it to the community.
Note that it is already possible to easily obtain a session from the camel-mina2 component using the Mina2Constants.MINA_IOSESSION header. But this gives you the current session not all sessions which I belief you're after, right? [1] https://mina.apache.org/mina-project/userguide/ch3-service/io-service.html Kind regards, Richard On Fri, Feb 14, 2014 at 9:22 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > On Fri, Feb 14, 2014 at 9:01 AM, Bart <b.buc...@phxtecno.com> wrote: > > Hi Claus, > > Indeed I had look on camel-mina2 API and it's different especially if you > > take Endpoint under consideration: > > 1. MinaEndpoint - > > > http://camel.apache.org/maven/current/camel-mina/apidocs/org/apache/camel/component/mina/MinaEndpoint.html > > 2. Mina2Endpoint - > > > http://camel.apache.org/maven/camel-2.12.0/camel-mina2/apidocs/org/apache/camel/component/mina2/Mina2Endpoint.html > > > > You can clearly see that MinaEndpoint has additional methods like: > > - getAcceptor() > > - getAddress() > > > > and those I used with Mina 1 but in Mina2Endpoint there is no such > methods > > so I was wondering if there is rather some camel approach with Endpoint > to > > get sessions rather than using Mina 2. I would say that external > application > > is connecting with my Endpoint - it's a consumer. Is there any way to get > > all connected consumers with endpoint and send them message? > > > > Ah you are welcome to dive into the camel-mina2 code, to see if you > can find out where to add code so it can offer the same functionality > as camel-mina does. > > We love contributions > http://camel.apache.org/contributing > > > > > > > -- > > View this message in context: > http://camel.465427.n5.nabble.com/Apache-Mina2-and-HL7-listener-tp5747265p5747299.html > > Sent from the Camel - Users mailing list archive at Nabble.com. > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > Email: cib...@redhat.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen > Make your Camel applications look hawt, try: http://hawt.io >