Umesh K Sharma wrote:What is the difference DataSource.getConnection() Vs DataSource.getConnection(username,password)
In first case Web container or
EJB container (i.e. WAS) authenticates user ID (e.g. with J2C connection aliases), in second case your program authenticates itself (programmatically) and must keep user ID, password (which is inconvenient as password may expire and change).