tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Livanov <sergey.liva...@ukrpost.net>
Subject JNDI RE: Charles So
Date Wed, 30 Apr 2003 14:25:28 GMT
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


Mime
View raw message