开发者

Does Java 6 support legacy JAXB1 out of the box?

开发者 https://www.devze.com 2023-02-10 04:14 出处:网络
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

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

精彩评论

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