[英]what is the Difference between the “/com/sun/xml/ws/” package in jaxws-rt.jar and “/com/sun/xml/internal/ws/” package inside rt.jar
i do not understand the use of an "internal" implementation of jax-ws packages inside rt.jar when they are already available through jaxws-rt.jar. 当通过jaxws-rt.jar获得jax-ws包时,我不理解在ja.ws包中使用jax-ws包的“内部”实现。 Why would Sun/Oracle take such a decision to integrate jax-ws inside jdk...I dont know if the changes in classes of both the packages in both the jars are carried out parallely....Can some one put light on which should be actually reffered...????
为什么Sun / Oracle会做出这样的决定,将jax-ws集成到jdk中……我不知道两个jar中两个软件包的类更改是否都是并行进行的。应该被实际拒绝... ????
jaxws-rt.jar
is not part of the Java RE. jaxws-rt.jar
不属于Java RE。 But RE needs an implementation of JAXWS internally. 但是RE需要在内部实现JAXWS。 So, as far as I remember, they implemented one in the
com.sun.xml.internal.ws
package to avoid future conflicts and errors if applications put a different implementation of JAXWS on their classpath. 因此,据我所记得,他们在
com.sun.xml.internal.ws
包中实现了一个,以避免将来的冲突和错误(如果应用程序在其类路径中放置JAXWS的不同实现)。
Another aspect: even if someone adds a new implementation to the classpath it's still guaranteed, that the JRE works as expected, even if this new implementation has bugs. 另一个方面:即使有人将新的实现添加到类路径中,也可以保证JRE可以按预期工作,即使该新实现存在错误。
You don't give any context as to where you are seeing this. 您不会在任何地方看到任何上下文。
By default the JAX-WS implementation that lies behind the javax.xml.ws*
types is the one shipped in the JRE. 默认情况下,位于
javax.xml.ws*
类型后面的JAX-WS实现是JRE中附带的实现。 JAX-WS defines a SPI ; JAX-WS定义了一个SPI ; in order to override the JRE classes, alternative implementations must reside in endorsed directories .
为了覆盖JRE类,替代实现必须位于认可的目录中 。
Some Java EE 5 application servers might work on both Java 1.5 and 1.6; 某些Java EE 5应用程序服务器可能同时在Java 1.5和1.6上运行; to meet the Java 1.5 specification, the application server would need to ship a JAX-WS implementation.
为了满足Java 1.5规范,应用程序服务器将需要附带一个JAX-WS实现。 Java EE 6 implementations will override the Java 6 implementation (Java EE 6 mandates JAX-WS 2.2 whereas Java SE 6 mandates 2.0).
Java EE 6实现将覆盖Java 6实现(Java EE 6要求JAX-WS 2.2,而Java SE 6要求2.0)。
Thus, it is possible to see more than one implementation of JAX-WS in some contexts. 因此,在某些情况下可以看到不止一种JAX-WS实现。 Which one is used depends on the configuration.
使用哪种取决于配置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.