File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes JEE 1.5 Servlet Endpoint Webservice? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "JEE 1.5 Servlet Endpoint Webservice?" Watch "JEE 1.5 Servlet Endpoint Webservice?" New topic

JEE 1.5 Servlet Endpoint Webservice?

Tejas Jain
Ranch Hand

Joined: Mar 04, 2008
Posts: 119
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."
--Bruce Lee
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
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.
Best wishes!
I agree. Here's the link:
subject: JEE 1.5 Servlet Endpoint Webservice?
It's not a secret anymore!