You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Frank von Daak <f....@kpage.de> on 2004/06/22 07:49:25 UTC

JDBC-ConnectionTimeout

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@kpage.de	Homepage: http://www.kpage.de
"If Bill Gates had a nickel for every time Windows crashed...
    - oh wait, he does."

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org