| Author |
Getting Datasource from Context
|
Jeff Ma
Greenhorn
Joined: Feb 14, 2006
Posts: 6
|
|
Getting Datasource from Context. DataSource pool = (DataSource) env.lookup("jdbc/oracle-8i-athletes"); a) Place this code in init() of every servlet. b) Place this code in a servlet that can be called along with application starting, then save the pool into application scope. which solution is better?
|
 |
 |
|
|
subject: Getting Datasource from Context
|
|
|