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:[EMAIL PROTECTED]

Chance favour to prepared mind


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to