The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » Metro and JAXB

Thread: what the relationship between JDK1.5.0 and JAXB2.0?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 3 - Last Post: May 30, 2006 10:58 AM by: kohsuke
sunyi

Posts: 5
what the relationship between JDK1.5.0 and JAXB2.0?
Posted: May 25, 2006 11:22 PM
  Click to reply to this thread Reply

I'm curious that is there any dependence or relationship between JDK1.5.0 and JAXB2.0?
Must I update JAXB to 2.0 when use JDK1.5.0?
If I update my JDK to JDK1.5.0 and still use JAXB1.0 the same time,Will it cause any incompatible problem?

kohsuke

Posts: 3,962
Re: what the relationship between JDK1.5.0 and JAXB2.0?
Posted: May 30, 2006 8:38 AM   in response to: sunyi
  Click to reply to this thread Reply

> Must I update JAXB to 2.0 when use JDK1.5.0?

No.

> If I update my JDK to JDK1.5.0 and still use JAXB1.0
> the same time,Will it cause any incompatible problem?

No.

richunger

Posts: 8
Re: what the relationship between JDK1.5.0 and JAXB2.0?
Posted: May 30, 2006 10:54 AM   in response to: sunyi
  Click to reply to this thread Reply

You must move to JAXB 2.0 (or at least the jaxb1 implementation that ships with jaxb2) when moving to jdk 1.6 (which includes jaxb2). 1.5 has no issues with respect to jaxb.

kohsuke

Posts: 3,962
Re: what the relationship between JDK1.5.0 and JAXB2.0?
Posted: May 30, 2006 10:58 AM   in response to: richunger
  Click to reply to this thread Reply

You can continue to use JAXB 1.0 with JRE 6.0, too. In particular, your application that was developed with JAXB 1.0 will continue to run on Mustang.

It's just that it's bit complicated to develop JAXB 1.0 application by using JDK 1.6. As richunger pointed out, Mustang has JAXB 2.0 in it, and JAXB 1.0 didn't expect this, so when you run XJC from JAXB 1.0, you might need to override classpath and etc to avoid conflicts.




 XML java.net RSS