On 08/08/2011 9:20 AM, Glen Mazza wrote:
The effort spent learning Maven will pay off rather quickly, and also
web services--REST or SOAP--are an easy, pleasant way to quickly get
up to speed with this fine build tool. CXF services are also an easy
way to learn more about Spring--but Spring knowledge is not that
important, it ultimately is just Java code, we just happen to use
Spring instead of reinventing the wheel.
Spring may not be essential for using CXF but is a very worthwhile tool
to have and really reduces the effort required to build robust applications.
The Talend JAX-RS Advanced example explained here:
http://www.jroller.com/gmazza/entry/video_tsf_jaxrs_advanced_example,
is fully Mavenized (has an architecture you can copy for your own
work) and has an ability to be deployed on standalone Tomcat (even
though the video uses OSGi deployment instead) -- just check the
README of that sample for Tomcat deployment.
I'd recommend my WSDL first tutorial
(http://www.jroller.com/gmazza/entry/web_service_tutorial) not so much
for learning about SOAP but just a quick way to get up to speed with
Maven: building projects with it (mvn clean install) and deploying to
Tomcat (mvn tomcat:redeploy). Eclipse should just be for coding, if
you use it for project building and servlet container deployment it
will slow you down over time.
Eclipse STS is a fully integrated version of Eclipse and gives you
everything that you need for CXF.
It makes installing and maintaining the right Eclipse tool kit very simple.
Instead of taking a whole day to upgrade or install Eclipse, it is a
simple install that takes 1/2 an hour to get everything all set up with
the right versions of all the plug-ins that you need to develop web
services.
Ron
HTH,
Glen
On 8/7/2011 1:24 PM, Sperner, Klaus wrote:
Dear CXF Users,
I'm trying to develop a RESTful interface (JAX-RS) using Apache CXF,
and I'd like to deploy it into a Tomcat Server from the Eclipse IDE.
I found this tutorial
(http://pettergraff.blogspot.com/2010/11/developing-web-service-in-eclipse.html),
which describes the needed steps for a normal Web service (JAX-WS)
very detailed, but I didn't find any tutorials for the creation of
RESTful interfaces. Is there such a tutorial around, or could you
provide me with a short sequence of the necessary steps to accomplish
the deployment of the server and client side components. As I don't
know much about Maven and nothing about Spring, I'd like to omit
these technologies in the first step, but if I need them, or if they
make it much easier, I'll have a closer look at them.
Any help would be appreciated.
Thanks in advance and best regards,
Klaus
Klaus Sperner
Research Associate
SAP (Switzerland) Inc., Kreuzplatz 20, 8008 Zurich, Switzerland
T +41 58 871 78 31, M +41 76 409 40 63, F +41 58 871 78 12
mailto:[email protected]
Please consider the impact on the environment before printing this
e-mail.