Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Java 6 support legacy JAXB1 out of the box?

Tags:

java

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 work for me with Java 6 classes out of the box.

Thanks, Jan

like image 443
jan_bar Avatar asked Nov 14 '22 03:11

jan_bar


1 Answers

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

like image 50
kiran.kumar M Avatar answered Dec 17 '22 14:12

kiran.kumar M