Originally posted by Apratim Khandalkar:
it says using EJB endpoint we can take advantages of transaction management.
My question is servlet endpoint can also take advantage of transaction management ?
(scjp, scwcd, scbcd, scdjws) what's next? scea!
Originally posted by Apratim Khandalkar:
But I am wondering how the non-java client might call EJB endpoint based webservice.
Originally posted by Leo Blommers:
an other difference is that webservices based on servlets are session aware and webservices based on ejb's arent.
Originally posted by Sam Powell:
Are you saying that the my service endpoint is capable of supporting sessions just because the servlets are used to implement the endpoint?
How is this different from saying that my endpoint is transaction aware because its implemented using EJB.
4.3.10 HTTP Cookies
The HTTP State Management Mechanism ("Cookies") allows the creation of stateful sessions between Web browsers and servers. Being designed for hypertext browsing, Cookies do not have well-defined semantics for Web services, and, because they are external to the SOAP Envelope, are not accommodated by either SOAP 1.1 or WSDL 1.1. However, there are situations where it may be necessary to use Cookies; e.g., for load balancing between servers, or for integration with legacy systems that use Cookies. For these reasons, the Profile limits the ways in which Cookies can be used, without completely disallowing them.
R1120 An INSTANCE MAY use the HTTP state mechanism ("Cookies"). R1122 An INSTANCE using Cookies SHOULD conform to RFC2965. R1121 An INSTANCE SHOULD NOT require consumer support for Cookies in order to function correctly. R1123 The value of the cookie MUST be considered to be opaque by the CONSUMER.
The Profile recommends that cookies not be required by instances for proper operation; they should be a hint, to be used for optimization, without materially affecting the execution of the Web service. However, they may be required in legacy integration and other exceptional use cases, so requiring them does not make an instance non-conformant. While Cookies thus may have meaning to the instance, they should not be used as an out-of-bound data channel between the instance and the consumer. Therefore, interpretation of Cookies is not allowed at all by the consumer - it is required to treat them as opaque (i.e., have no meaning to the consumer).