wood burning stoves*
The moose likes Websphere and the fly likes WebSphere / Datasource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "WebSphere / Datasource" Watch "WebSphere / Datasource" New topic
Author

WebSphere / Datasource

Thierry DESMURGER
Greenhorn

Joined: Oct 30, 2003
Posts: 3
Hello,
Here my problem: When I deploy my application under Websphere, I would like to have the possibility of modifying the datasource rather easily. Knowing that I have 3 datasources defines.
In fact, I have an EAR, when I deploy it which are the methods which exist to select another data base (example: base production, bases test...).
Thank you
Thierry
Mike Jay
Greenhorn

Joined: Apr 25, 2003
Posts: 5
I assume that you want to deploy your application to different environments, test, QA, Production and need to change the actual database you operate against to match the environment. If that is the case, it seems you could have a single datasource, say MYDataSource which your application always uses. When you change enviroments, you need only change the definition of the datasource to point to the desired database.
Hope this helps
Rufus BugleWeed
Ranch Hand

Joined: Feb 22, 2002
Posts: 1551
Your desire is the cause for a naming and directory service.
Mahesh Chalil
Ranch Hand

Joined: Jan 24, 2002
Posts: 147
You should look at "Referecnes" from EJB and Weblayer to this datasources for customization ...
-Mahesh
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: WebSphere / Datasource
 
Similar Threads
Deploying Jar inside WebSphere5
How to create Ejb CMP with WSAD,?
Security with Oracle8i
Deployment of CMP in IBM Websphere
BMP Example using DataSources