Hi all,
Our application is deployed in websphere server and works with Teradata. Connection pooling is used through server settings for datasource.
Java code for getting connection is as follows:
Context ctx = new InitialContext();
Datasource ds = (DataSource) ctx.lookup("java:comp/env/test");
Connection conn = ds.getConnection(username, password);
username and password could be different sometimes. My doubt is "Does connection get established each time ds.getConnection(username,password) is called"?
If connection need not be established every time and it uses connection pooling properly how does authentication works?
Can anybody please clarify my doubt?
Thanks & Regards,
Swathi.