tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "deepak shripat mane" <deepakmane2...@rediffmail.com>
Subject Re: JDBC-ConnectionTimeout
Date Wed, 23 Jun 2004 04:36:30 GMT
  
U can set  session time out atttribute in server.xml file
so that u can solve ur problem

Deepak


On Tue, 22 Jun 2004 Frank von Daak wrote :
>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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message