Bhende, Arundhati wrote:
> I have two questions regarding JAXB
>
> 1. Is there a way to determine which version of JAXB ( xjc ) was used to generate java classes from xsd file, if you don't have that documented anywhere and you have the generated classes - either a command line way or some other utility
Each generated java file should contain a header that specifies the
version of JAXB used to create it. I think we also bake the version
info into the class files in a way that you could programatically
access it, but I'm not sure how off the top of my head. I'd have to
go look...
> 2. Is there a way to find out from a jaxb-libs.jar or jaxb-impl.jar etc, which version of JAXB, those jars come from / belong to?
"xjc -version" should work, if it doesn't, then you are using 1.0 and
should upgrade ;8-)
--Ryan