Alexandr V. Varlamov wrote:
Hi,
Hi,

i have a client application, that do many connections to 2-3 servers.
I want create connection pool object (5-10 connections to each server), but i'm newbie in mina. May be MINA already has mechanism for that? I use MINA 2.
We don't have a connection pool facility in MINA. You can easily implement it using Apache commons pool.

I can do pool for IoSession object, but i think it's not very good idea (i need manyaly clear state of IoSession object)?
It all depends on wht you do in a session, ie is it statefull or not, is it using SSL, etc. So basically, when you release a connection and send it back to the pool, you are responsible for the session cleanup.

Hope it helps

--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org


Reply via email to