Reputation: 32321
I use JDK 1.6 and I work on an a existing application which is using JAXB.
How can I know whether I am using JAXB 1 or JAXB 2 ?
Upvotes: 1
Views: 1050
Reputation: 149017
If there are any annotations from the javax.xml.bind.annotation
package in your model then you are using JAXB 2 (JSR-222). These annotations did not exist in JAXB 1 (JSR-31). A JAXB 1 model consists of spec defined generated interfaces backed by implementation specific impl classes.
Upvotes: 2