ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Understanding JAXB: Java Binding Customization
Subject:   How to avoid duplicate bindings in multiple schema files
Date:   2004-05-30 01:21:56
From:   fla
Response to: How to avoid duplicate bindings in multiple schema files

I found out through other mailing list that if I specify a package name for xjc, it is applied to schemas imported as well. Using an external binding doesn't resolve this problem. There are a couple of options:
a) Let xjc use derived package name from each schema's target namespace.
b) Use inline binding for each schema file to specify desired package name.


Frank


1 to 1 of 1
1 to 1 of 1