Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to write a service to connect to MySql?

 
Nandana Soman
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sample code or links??
The procedure is no different from the standard approach to database connectivity from within java.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic