Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Running RESTful on Apache Tomcat Server  RSS feed

 
Fidel Edwards
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am new to the Web Service area. Do we have any way to deploy our RESTful Web Service on Tomcat Server without any other API like Jersey etc.

( I might be asking a foolish question)
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
REST is an architectural concept. It can be implemented in any way you see fit, including by not using any pre-existing library. But the question is: why would you not want to use one, and thus save yourself a lot of work?
 
Fidel Edwards
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf,

Ulf Dittmer wrote:It can be implemented in any way you see fit, including by not using any pre-existing library.
Since I am novice to this. So I don't know what can be different available option until I start implementing any of those ...

Ulf Dittmer wrote:But the question is: why would you not want to use one, and thus save yourself a lot of work?
As whenever I go through any document/website on Internet. Each of the available document use their own way of implementation, which flummox to understanding the basic things.

I would appreciate if you can provide any simple tutorial on this.

Thanks in advance..!

 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Each of the available document use their own way of implementation

If that's your impression then I'm fairly certain that you're misunderstanding something. Extremely few people have the time and inclination to implement a REST library, when excellent ones such as Jersey are available to use for free. Maybe you can ask a more specific question about what you're struggling with and we'll see if we can help you get going.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A quick google search for "jersey tomcat tutorial" found http://www.ibm.com/developerworks/library/wa-aj-tomcat/, which manages to do without any IDE or Maven overhead, and should thus be easy to get started with.
 
surlac surlacovich
Ranch Hand
Posts: 296
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fidel Edwards wrote:Do we have any way to deploy our RESTful Web Service on Tomcat Server without any other API like Jersey etc.

The only way I see to build it on plain Tomcat (without REST implementations) if to create servlet, map it to some URI (like localhost:8080/tomcat/rest_servlet) and parse all parameters passed in GET-request after 'rest-servlet', figure out which service need to be run and execute it.
 
Fidel Edwards
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many Thanks Gents... !

I will again go through these documents( links) suggested and will come up with some doubts/queries as soon as they come....!


Cheers ...!

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!