tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman \"Blade\" Velichko" <bl...@ivc.tagmet.ru>
Subject Re: RES: Tomcat Conn Pooling in 4.0.4 - Very Slow?
Date Thu, 07 Aug 2003 04:18:04 GMT
JEdSJD> I guess that DBCP would be the better choice, since it is db platform
JEdSJD> independency. I use it in 4.1.18 and its nice to me.
JEdSJD> Eculides.
But DBCP throw an UnsupportedException when I try to
execute this portion if code:

try
{
   initCtx=new InitialContext();
   jndiDataSource=(DataSource) initCtx.lookup("java:comp/env/jdbc/gray/hr");
   Connection conn=jndiDataSource.getConnection("username","userpassword");
   // in this section conn is ALLWAYS NULL
}
catch(NamingException nameExcept)
{
   System.out.println(nameExcept.getMessage());
}

========
With best wishes
Roman "Blade" Velichko [mailto:blade@ivc.tagmet.ru]

Chance favour to prepared mind


Mime
View raw message