aspose file tools*
The moose likes JDBC and the fly likes Datasource question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Datasource question" Watch "Datasource question" New topic
Author

Datasource question

Shankar Veerashetty
Greenhorn

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: 8898

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


Groovy
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

It is going to create a dynamic connection pool.
 
jQuery in Action, 2nd edition
 
subject: Datasource question
 
Similar Threads
Regarding JNDI doubt
DataSource passing param
Database Connection and Session
Datasource JNDI Lookup in WSAD from standalone app
Want to use different data source than my security principal