Hi,

I'm creating an object pool for socket and DB connection. In p267 of jason's
book says that i have to performed some tests to make sure the connection is
good. My question is what kind of test should i perform?

For DB connection pool, Jason suggests to run a simple query. Is there any
other way to test a connection? I think executing a query is as expensive as
creating a new connection. ( "setAutoCommit(..)" is not a good idea, some of
the non rational DBMS doesn't support this methode.)

For Socket connection, no idea, any  suggestion are welcome.

Alvin

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to