开发者

Does Java 6 support legacy JAXB1 out of the box?

does Java 6 support legacy JAXB1 out of the box? According to JAXB guide, I can use JAXB1 with JAXB2 libraries, just add jaxb1-impl.jar to classpath. But it seems that this works only when using JAXB RI as standalone package. It doesn't开发者_如何学JAVA work for me with Java 6 classes out of the box.

Thanks, Jan


Jaxb is backword compataible. You can use generate binding classes using jaxb1 , compile it into a seperate jar.

Deploy the above compiled code in jvm6. There will be no change needed in the client code. Jaxb2 will automatically pickup the legacy binary. --Kiran.Kumar

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜