wood burning stoves 2.0*
The moose likes Web Services and the fly likes How to write a service to connect to MySql? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to write a service to connect to MySql?" Watch "How to write a service to connect to MySql?" New topic
Author

How to write a service to connect to MySql?

Nandana Soman
Greenhorn

Joined: Aug 27, 2004
Posts: 3
Hi,

I am working on web services for quite some days now. I want to write a service which connects to MySql database and creates/updates/reads/delete records from a table. Can anyone provide me with a sample code or any links?

Thanks in advance.
Nandana
Dan Harabox
Greenhorn

Joined: Nov 16, 2003
Posts: 7
Sample code or links??
The procedure is no different from the standard approach to database connectivity from within java.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
As Daniel already mentioned, the fact that you're using the data for responding to a web service request is irrelevant. Thus, you should post any Java database connectivity related questions to our JDBC forum -- you're much more likely to get answers over there.

PS. Daniel, your display name isn't quite compliant with our policy. You can add the required lastname over here. Thanks.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to write a service to connect to MySql?
 
Similar Threads
making tomcat service depend on mySQL service
SQL question (not JDBC)
WebSphere 5.0 and mySql
RESTful web services
start and stop mysql server from eclipse