Hi Raxit, On Nov 26, 2007 2:53 PM, <[EMAIL PROTECTED]> wrote: > > Hi, > > I am very much new to MINA. > > Want to know any Non-JDBC Connection pooling mechanism which works with > Servlet/Jsp with Apache-tomkat/Weblogic/SunOne server. ? > > Currently we are having Non-JDBC/Non-Sql Tcp server, > > 1. Servlet/Jsp code make Tcp-Connection for Each request, > 2. after getting repsonse from Server, we are closing the connection in > Jsp/Servlet code, However Server can able to handle Multiple request per > connection. > > As you may guess, if we flood few hundered request, Jsp/Servlet code is > Rocking with Performance/scalability problem, > > Also Server performance is also Rocking as it sense too many open/close > connection. > > > Please note there are many solution available for JDBC pooling,but as you > know it is not about RDBMS/Sql or JDBC. > > Is there anything in MINA usable to this situation ?
Well, I think it's not strictly MINA-related question, because what you want to is actually keeping the connection alive even if the HTTP request ends in Servlet environment. Did I understand correctly? If so, you can create a bogus Servlet that maintains connection and call the static method of the Servlet from your JSP page to perform some communication (probably using a custom tag?). Of course, your servlet will have to dispose all resources including Socket when the web application is undeployed. HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6
