Pawan
Pawan

Reputation: 32321

How to determine the JAXB version used in an application

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

Answers (1)

bdoughan
bdoughan

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

Related Questions