In J2EE 1.4 we have an option to create a web service with Servlet endpoint.
Do we still have it in JEE 1.5? I can create a web service from POJO and Stateless Session EJB3 using annotations easily. What about Servlet?
"Knowing is not enough, you must apply... Willing is not enough, you must do."
posted 6 years ago
No, the web service development model has not changed between the versions you mention.
If you develop an annotated POJO using JAX-WS, then it will be "wrapped" in a servlet - thus this is called a servlet endpoint.
I strongly suspect an EJB annotated with JAX-WS annotation(s) will, in a similar way, also be wrapped in a servlet. However, since it is an EJB that contains the service endpoint implementation, this is called an EJB endpoint.
You do not need to implement the servlet in either of the above cases - it is provided by the JAX-WS web service implementation.