Clint Combs wrote:
> Hi, I'm now subscribed with this e-mail address.
Great, i recommend you subscribe to the users list as well.
> I am using Java 6 w/
> NetBeans so that's probably the issue. Is there any advantage to using
> JAXB 2.1 at this point?
>
I have modified the code you highlighted to only use the 2.0 API feature.
The most likely advantage is performance.
In the near future will be supporting better JSON support in JAXB 2.1.x
so there will be a dependency on the JAXB-JSON specific message body
reader/writer, but that can be independent of the core runtime.
Paul.
> -Clint
>
> On 1/7/08, *Paul Sandoz* <Paul.Sandoz_at_sun.com
> <mailto:Paul.Sandoz_at_sun.com>> wrote:
>
>
> My guess is Clint is using JAXB version that is as part of SE 6? (namely
> JAXB 2.0 API). In that API there is no method for:
>
> Marshaller.marshal(Object, File)
>
> Compare the Marshaller of 2.1 [1] with 2.0 [2].
>
> Jersey is using and provides the JAXB 2.1 API. (IIRC JAXB 2.1 will be
> available in a stable update release of SE 6 at some point).
>
> Hmm... we could easily change this so JAXB 2.0.x and 2.1.x are
> supported. In the 0.4 release we did have a runtime dependency on the
> 2.1.x RI but now i don't think we do.
>
> Paul.
>
> [1]
> https://jaxb.dev.java.net/nonav/2.1.5/docs/api/javax/xml/bind/Marshaller.html
> [2]
> https://jaxb.dev.java.net/nonav/2.0.4/docs/api/javax/xml/bind/Marshaller.html
> <https://jaxb.dev.java.net/nonav/2.0.4/docs/api/javax/xml/bind/Marshaller.html>
>
>
--
| ? + ? = To question
----------------\
Paul Sandoz
x38109
+33-4-76188109