wood burning stoves
The moose likes Web Services and the fly likes Web Srevices with Database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Srevices with Database" Watch "Web Srevices with Database" New topic

Web Srevices with Database

Scott Branchini

Joined: Mar 01, 2006
Posts: 14
I am trying to have my Web Service connect to a database, but cannot figure out how to do so. I wrote a Java application that connect to the database successfully, so I know the code should work. I am connecting to a MySQL database and have the connector/j.jar file in the axis/lib folder as well as the server/lib folder for Tomcat. Is there anything else that I need to do to have the service successfully connect to the database?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
Putting it into the Axis/WEB-INF/lib directory should be sufficient. What kind of error message are you getting?
Scott Branchini

Joined: Mar 01, 2006
Posts: 14
Believe it or not, you already solved the problem. I put it in axis/lib not axis/web-inf/lib. That solved my problem, so thank you for your help!
I agree. Here's the link: http://aspose.com/file-tools
subject: Web Srevices with Database
jQuery in Action, 3rd edition