- 
                    
 - 
                    
 - 
                    
 - 
                    
 - 
                    
 - 
                    
 - 
                    
 - 
                    
 - 
                    
 - 
                    
 - 
                    
 - 
                    
 - 
                    
 - 
                    
 - 
                    
 - 
                    
 - 
                    
 - 
                    
Connecting to database from JAVA using JDBC??
one from DATASoURCE second from DriverManager.getConnectionprogram using a DataSource and a PooledConnection is: import javax.naming.*;import javax.sql.*;...Context context = new InitialContext(); DataSource ds = (DataSource)ctx.lookup( "jdbc/DataSource" ); Connection con = ds.getConnection( "userID", "password" );...finally{ if( con != null ) { con.close(); }}CONNECTION POOLINGa...
 - 
                    
 - 
                    
 
J2EE Interview Questions
Sub Category
 
                Questions
 
                Answers
 
                Last Updated
              

		
Ans