tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kenneth topp <cau...@prodigy.net>
Subject Re: Help - Example of RequestDispatcher call.
Date Mon, 09 Oct 2000 17:02:42 GMT

I would recommend using a singleton pattern.  I have no good internet
pointers to recommend.  but there is some info you can find about
singletons in jguru.

The path you are heading doesn't seem right to me.  (Just one man's
opinion).

Good Luck,

Kenneth Topp


On Mon, 9 Oct 2000, Len, Peter wrote:

> Hello,
> 
> I am wondering how (or if) RequestDispatcher can help me with my
> problem.  I have a servlet (dbServlet) that gets loaded when the Tomcat
> starts. It is basically my own database pooler.  Anyway, there are other
> servlets that, when called, I want to get ahold of the dbServlet and
> obtain a new connection.  After my transaction I will need to inform my
> dbServlet to reallocate that connection.  I'm not sure if, or how,
> RequestDispatcher.include could get me my connection object and
> RequestDispatcher.forward could be used to do the reallocation.
> 
> Does anyone know how, or if, I can use RequestDispatcher in this manner?
> 
> Thanks,
> 
> Peter Len
> 



Mime
View raw message