Page 1 of 1

About Question enthuware.ocejws.v6.2.65 :

Posted: Wed Dec 30, 2015 8:52 am
by disznoperzselo
You accept the following as correct answer for this question:
"A JAX-RS service is stateless" - true
"A JAX-RS service can be stateful" - not true

However in enthuware.ocejws.v6.2.297 you claim that:
"A RESTful service is stateless" - true
"JAX-RS only allows stateless interactions" - not true

The explanation:
it is possible to get to the session via the @Context HttpServletRequest

I think that you should change the answer to this question:
"A JAX-RS service is stateless" - not true
"A JAX-RS service can be stateful" - true

Re: About Question enthuware.ocejws.v6.2.65 :

Posted: Mon Jan 04, 2016 12:52 am
by fjwalraven
Yes, good catch!

A JAX-RS web service is not always a RESTful web service.

A RESTful web service, by definition, is stateless. When a JAX-RS web service is turned into a stateful web service it isn't a RESTful web service anymore. I have changed the options.

Thanks for your feedback!

Regards,
Frits