更新时间:2022-03-03 09:28:09
sun-jaxws.xml
是使用SUN的参考实现将Web服务部署为非Java EE5 servlet容器上的标准 WAR
存档时所需的专有部署描述符。
sun-jaxws.xml
is a proprietary deployment descriptor needed when web services are deployed as a standard WAR
archive on a non-Java EE5 servlet container using the SUN's reference implementation.
Sun的RI使用 WSServletContextListener
作为servlet上下文事件的监听器和 WSServlet
作为调度程序servlet;两者都必须在 web.xml
中声明。然后需要 sun-jaxws.xml
文件来定义 WSServlet
的Web服务端点,让它知道哪个端点必须分派服务请求。
Sun's RI uses WSServletContextListener
as the listener for servlet context events and WSServlet
as the dispatcher servlet; both of which have to be declared in web.xml
. The sun-jaxws.xml
file is then required to define web service end points for the WSServlet
to let it know to which end point a service request must be dispatched.
通过这种方式,Web服务可以在任何 JAX-WS
RI启用的servlet容器中运行,尽管他们赢了不便携。
In this way, web services can be run in any JAX-WS
RI enabled servlet container, although they won't be portable.
符合Java EE 5+标准的应用服务器,例如 Glassfish,参考实现,符合JSR 109( Web服务1.2 / 1.3
)和JSR 224( JAX-WS 2.0 / 2.1 / 2.2)
)并且不需要非标准的 sun-jaxws.xml
部署描述符。
Java EE 5+ compliant application servers such as Glassfish, the reference implementation, comply to JSR 109 (Web services 1.2/1.3
) and JSR 224 (JAX-WS 2.0/2.1/2.2
) and do not require non-standard sun-jaxws.xml
deployment descriptors.
请在此处查看更多信息:
Please see here for more information:
http://jax-ws.java.net/nonav/2.2.1/docs/UsersGuide.html#1.0_Introduction
http://www.ibm.com /developerworks/java/library/j-jws9/index.html