Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

JDBC-ConnectionTimeout

Frank von Daak

2004-06-22


Hi...

...is there really noone, who can tell me, how to set up the
connection-timeout for a mssql-based ConnectionPool with tomcat ?

The methode getLoginTimeout() and setLoginTimeout() does not seem to be
avaible. If I try to use them, I get this error:

UnsupportedOperationException

------------------------------
Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup(ctx_lookup);
DataSource ds     = (DataSource)envContext.lookup(env_lookup);

out.println(ds.getLoginTimeout());
------------------------------

Thank you very much !
--
Name:  Frank von Daak
eMail:  f.vondaak@(protected)
"If Bill Gates had a nickel for every time Windows crashed...
  - oh wait, he does."

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.