3

I have been going through the JAX-WS RI documentation and came across the terms non-Java EE 5 servlet and Java EE 5 servlet containers.

The documentation/samples discusses how to use JAX-WS in a non-Java EE 5 servlet container using a proprietary deployment descriptor sun-jaxws.xml and servlet com.sun.xml.ws.transport.http.servlet.WSServlet. This means that you can run JAX-WS RI applications in any servlet container that has been enabled with the JAX-WS RI. Applications that use the proprietary DD and servlet will run in a JAX-WS RI enabled Java EE 5 servlet container, but they will be non-portable. If you wish to use JAX-WS in a Java EE container in a Java EE portable manner you need to use the standard Java EE 5 deployment descriptor; please refer to the Java EE 5 or Glassfish documentation/samples

So what exactly are the non-Java EE 5 servlet and Java EE 5 servlet containers ? Is it because of the different java and servlet specifications versions?

user68883
  • 828
  • 1
  • 10
  • 26

2 Answers2

2

JAX-WS implementation introduced in J2EE 5.
Non-full J2EE servlet container like Tomcat does not understand sun-jaxws.xml ,
so you need to add a library to make it work.

Sergei Chicherin
  • 2,031
  • 1
  • 18
  • 24
  • Does that mean Java EE 5 servlet containers come with their own implementation of Jax-Ws API ? – user68883 Mar 26 '14 at 13:47
  • @user68883 , yes http://en.wikipedia.org/wiki/Java_API_for_XML_Web_Services#Implementations and Metro is reference implementation. – Sergei Chicherin Mar 26 '14 at 15:12
  • It's not only JAX-WS. There are more APIs that are not included in non-JEE containers. EJB3, for example. – kaqqao Sep 27 '14 at 17:42
0

Not sure, but I read it as "in versions prior to Java EE 5 servlet container", so e.g. J2EE 1.4 servlet container

Puce
  • 37,247
  • 13
  • 80
  • 152