Hi

On Thu, Aug 18, 2011 at 7:18 AM, Raj Floyd <[email protected]> wrote:
> Hi
>
> REST style architecture, being based on HTTP specification, has common
> conventions like GET, POST typically also used by Servlets. Any idea why one
> would prefer RESTful Web service and not plain Servlet based framework. Its
> Web and HTTP in the end. I know this question may not be directly related to
> CXF but  really need to understand the clear semantics between RESTful and
> Servlet based frameworks. Will appreciate if you could guide me to a post or
> white paper which has this discussion.
>
One can write a RESTful application using Servlet, JAX-RS and possibly
other apis in Java alone.
I think JAX-RS simplifies a lot the way a request URI can be matched,
parsed, handled.
For example, suppose you need to handle GET requests with URIs such as
/a, a/{id}, a/{id}/b/{id2}, etc...
JAX-RS makes it easy to assign handlers (resource methods) early to
those URIs, extract parameters, etc...


Cheers, Sergey

> Thanks.
>
> Raj
>



-- 
Sergey Beryozkin

http://sberyozkin.blogspot.com
Talend - http://www.talend.com

Reply via email to