• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Running RESTful on Apache Tomcat Server

 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Rancher
Posts: 43081
77
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 296
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ...!

 
reply
    Bookmark Topic Watch Topic
  • New Topic