do we need to call any method on dbcp.BasicDataSource or jndi datasource(i'm using jboss) to return the connection after done with it?
            Asked
            
        
        
            Active
            
        
            Viewed 1.0k times
        
    1 Answers
31
            
            
        Nope, just call Connection.close().  If this connection was obtained from a pooled data source, then it won't actually be closed, it'll just be returned to the pool.
 
    
    
        skaffman
        
- 398,947
- 96
- 818
- 769
 
    