You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by ra...@polaris.co.in on 2007/11/26 06:53:24 UTC

Qry : Non-JDBC Connection Pool with Jsp/Servlet

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 ?

Thanks in Advance

-Raxit Sheth


" Save Paper - Do you really need to print this e-mail? "

This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only.  If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.

Visit us at http://www.polaris.co.in

Re: Qry : Non-JDBC Connection Pool with Jsp/Servlet

Posted by Trustin Lee <tr...@gmail.com>.
Hi Raxit,

On Nov 26, 2007 2:53 PM,  <ra...@polaris.co.in> 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