This is an external infrastructure not within our control. The way it works is to use the same socket.
Regards, Rajiv -----Original Message----- From: Emmanuel Lécharny [mailto:elecha...@gmail.com] Sent: Monday, August 27, 2012 7:28 PM To: users@mina.apache.org Subject: Re: Custom Session Handling in MINA Le 8/27/12 3:50 PM, Rajiv Kasera a écrit : > Hi, > > > > We are using MINA for a transaction engine. Some of the clients in our > ecosystem use a phone line based internet infrastructure (NAC) to > connect to the server. The NAC infrastructure is such that it > maintains a dedicated socket to the server and uses it to for handling > different client requests. > To distinguish each client it appends additional bytes in the packet > to keep a track of the client once it receives the response from the > server. The session does not closes even if the client initiates a > socket close request, however it closes only when the session timeout is > reached. > > > > Since all request use the same socket a single session is maintained > to handle request coming from such clients. I am also planning to > maintain session level attributes which will become very problematic > when different clients start using these same session attributes. Is > there a way of separating out the session once the packet has been received > completely? As you are multiplexing the user's sessions into the MINA session, it's up to you to handle those user's sessions on the IoHandler. Mina won't do it for you. Why are you limitating the connection to one single socket though ? -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com