You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sergey Livanov <se...@ukrpost.net> on 2003/04/30 16:25:28 UTC

JNDI RE: Charles So

Thans for answer!
I try your code ->     but 2 SQLException occur !




try {
      initCtx = new InitialContext() ;		
     ds = (DataSource)initCtx.lookup("java:comp/env/jdbc/OFFICE") ;
      System.out.println( "GEt ds" ) ;
 }
catch ( Exception ex )
{
      System.out.println( "ds GEt Error" ) ;
} 
		
try {
     conn = ds.getConnection() ;
    System.out.println("GET CONNECTION !" );
}
catch ( SQLException e )
{
     System.out.println( "GEt Error" ) ;
} 


--
Укрпост - продвинутая почта. http://www.ukrpost.net/
IMAP POP3 NNTP RSSNews Unicode.


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