Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JEE 1.5 Servlet Endpoint Webservice?

 
Tejas Jain
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic