This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Datasource question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Datasource question" Watch "Datasource question" New topic

Datasource question

Shankar Veerashetty

Joined: May 23, 2003
Posts: 4
What happens if a datasource is created with a id and a password and then an application developer gets a connection using
Connection conn = ds.getConnection("other_id","other_password") ;
Does it create a new pool of connections with this new id or gets a new connection everytime user requests for one?
Can anyone please explain what really happens here!!
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

Good question.I will have to try this :roll:

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

It is going to create a dynamic connection pool.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Datasource question
It's not a secret anymore!