Java Web Service Development - which libraries to take for simple setup?
What Is a good combination of 开发者_JAVA技巧Web Server, Servlet Container (do I need this?) and Web Service Framework for Java?
Unfortunately I am a not experienced in Java development but have to do it for university (feel home with .NET and C#)
However I have to use Java and I have to create a Web Service. I feel both obstrained by the possibilites of libraries and terminologies.
I tried the combination of Tomcat6 and Axis2 under Eclipse 3.5.1. Java developer and manually installed the WPT part. I run into every possible error message.
I am looking for a dead easy yet supported library combination for Eclispe. Nothing rock solid for production scenario.
I am on Ubuntu 10.10 AM64 FWIM.
To meet the minimal set of requirements to get your code running in a web server, all you should need is Apache Tomcat. Though, you might want to consider a robust, annotation-driven framework to handle much of the configuration for you (ie, Spring) and a build system (ie, Maven) that handles dependency aggregation and compilation into a Web application ARchive (WAR file) that can be consumed by Tomcat, among the other highlights.
The added bonus of using Maven, by the way, is you'll be able to generate a sample project from any of its servlet archetypes and get up and running quickly. It also provides a handy Tomcat plugin that makes deploying your latest development build painless (a la mvn tomcat:deploy
). It's also supported by Eclipse.
Best of luck with your project, by the way.
For Webservices, I would say try REST based Jersey Framework here, you already have HTTP concept and all it takes a couple of jars to download and there you go.
精彩评论