Developing a Java web service using Jersey(JAX-RS), mySQL and Eclipse
I have successfully created Web Services from MySQL Database using Netbeans tutorial. However, I would like to develop similar web services using Eclipse IDE. Why Eclipse IDE? There are two reasons for that:
1) This is because i am using Tomcat 7.0 and JEE6. Unfortunately, NetBeans 7.0.1 implements Facade design pattern while using their “Create Web services from Database …” Wizard and it does not have a plugin for Tomcat 7 and EE6.
2) The NetBeans Wizard is helpful but does not help me understand details about using JDBC bridge, managing conn开发者_开发知识库ections to MySQL DB and creating services to access the DB. Additionally, i want to add authorization for my services so that only registered users will be able to access my web services.
There's a very clear tutorial for building JAX-RS services in the Jersey user guide.
I found this tutorial that contains Restful web services using java and mysql in eclipse. It might be what you were looking for though it is a very simple tutorial. Check it out. http://www.techpages.org/webservice/simple-restful-web-services-using-java-and-mysql-example/2009/
精彩评论