2011/12/15 Aitor Garcia | Tempel.es <agar...@tempel.es>
>
> I had read all the JNDI & JDBC Official & Unofficial documentation but & only 
> found than you MUST close the connections.


That is why you have to read  the Servlet specification, JSP specification, etc.


> There insn't references to where to declare variables.
>
> Declaring into local scope forces that you have pass by reference the 
> connection, statement and resultset in every function that handle the pool os 
> use a class to handle the connection itsef.
>

Eh? There are many ways to write a program. Have you ever heard about
encapsulation? About patterns (such as "Design Patterns" book by
E.Gamma &co)?
http://www.ibookdb.net/isbn/0201633612


One more important thing to learn:
You should NEVER send HTML e-mails and images to mailing lists. It
wastes subscribers' bandwidth and storage area on archive servers.
Please use plain text.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to