• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting started learning javax.ws.rs-api-2.0-m02.jar

 
Elijah Marshall
Greenhorn
Posts: 4
IntelliJ IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, I'm really frustrated at this point. I just want a stupid simple plain example of using the javax.ws.rs-api-2.0-m02.jar and java files.

Can someone point me to a tutorial that just shows me something that works. Everything I'm finding I find myself bouncing back and forth between Glassfish, Tomcat, something called Jersey, Spring and other crap I just don't care to have to learn on top of web services.

I just want to know.
1. What are the EXACT jar files that I need to use REST?
2. Where do I get the jar files from?
3. A simple hello world java REST service file and whatever associated files needed to load it.

PLEASE assist and help me get this started.

I don't know Spring. I don't know Jersey. So, I just don't want to add more confusion to what I need to learn for the core.
 
ali hosseini
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
1- You must first choose the framework for the implementation of the Web service and then select the JAR files it.
2- you just, create the project with maven, and add jar file to pom.xml and the maven add dependency jar into project.
3- If you want, I can give you a simple web service that you can simply click it to discover the process and requirements.
English is very bad for me. I'm sorry.
Thanks
 
Elijah Marshall
Greenhorn
Posts: 4
IntelliJ IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ali hosseini Thank you kindly for your response. I was not aware that I have to have a chosen framework. I just expected to be able to take the jax jar put it into my lib and create a simple hello world example. A good friend of mine found a Maven Example for me as well that I followed which got me to that point. Here are the links to that sample for anyone else who needs to get something started.
Java RESTful Web Services

Note: When I first saw this I thought Jersey I don't know what that is and I don't have time to learn something else on top of JAX. So read below for the descriptions of what it is.
JAX-RS: Java API for RESTful Web Services (JAX-RS), is a set if APIs to developer REST service. JAX-RS is part of the Java EE6, and make developers to develop REST web application easily.


Jersey: Jersey is the open source, production quality, JAX-RS (JSR 311) Reference Implementation for building RESTful Web services. But, it is also more than the Reference Implementation. Jersey provides an API so that developers may extend Jersey to suit their needs.


Additionally to those coming here who don't know Maven... Neither do I but I did find this video set on YouTube which appears to be from an actual course that is very helpful
There are 4 videos that I know of in this set. I'm currently on #3.
Apache Maven Fundamentals (part 1 of 4)
 
ali hosseini
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
For Maven, Just to install WTP on the eclipse and automatically install maven and web tools developer on the eclipse or Download Eclipse J2EE edition, and into the this eclipse is wtp.
then, Create Maven Project MavenSimpleProject
Ana,
for Create Jersey RestFul Web service, Jersey and Spring etc are only a framework for building web services restful.
Example for RestFul web service with jersey

Where you ask the question again.
I do this a lot and I do not want to trouble anyone else have this problem.
Tnx
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!