Reputation: 51
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 work for me with Java 6 classes out of the box.
Thanks, Jan
Upvotes: 5
Views: 690
Reputation: 801
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
Upvotes: 1