File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes Database connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Database connection" Watch "Database connection" New topic

Database connection

vasu maj
Ranch Hand

Joined: Jul 12, 2001
Posts: 396
How in WSAD do I change the database that I am connecting to? Is there a config or a properties file?



What a wonderful world!
vasu maj
Ranch Hand

Joined: Jul 12, 2001
Posts: 396
I am gettinig a driver not found SQLException. Where do I need to put the drivers at?

Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892

In my book begin by looking at chapter 8 around page 122 or so. Also, have you checked out the Redbooks on this topic yet?

[ May 13, 2004: Message edited by: Kyle Brown ]

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
MoonChinn Goh

Joined: Jul 25, 2002
Posts: 12
to set datasource:
open your application server test environment file(.wsi file),
there is a datasource tab.

database driver not found problem:
right click on your web application
select properties
choose Java build path from left panel
select Libraried tab on right panel
edit the DB2_DRIVER_PATH
I agree. Here's the link:
subject: Database connection
It's not a secret anymore!