tags:

views:

436

answers:

1

The documentation of JAXB xjc says:

-b Specify one or more external binding files to process. (Each binding file must have it's own "-b" switch.) The syntax of the external binding files is extremely flexible. You may have a single binding file that contains customizations for multiple schemas or you can break the customizations into multiple bindings files:

   xjc schema1.xsd schema2.xsd schema3.xsd -b bindings123.xjb

   xjc schema1.xsd schema2.xsd schema3.xsd 
         -b bindings1.xjb -b bindings2.xjb -b bindings3.xjb

In addition, the ordering of the schema files and binding files on the command line does not matter.

But where do I find a documentation of this "external binding file"?

+1  A: 

I remember my own search for this information - I finally found something in the Java EE 5 tutorials. Here's a link that may help you.

Andreas_D