• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JIXB question about the binding.xml for more than one schema and more than one generated object how

 
Ranch Hand
Posts: 681
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All the examples I have seen so far, show how to to generate and bind one schema to one object. If I have two schemas , should I still have one binding.xml with both bindings for both objects written in.

The way it works is it will for each schema generate overwrite the binding.xml

I need to create a new binding.xml for each object generated , but it seems to always defaults to binding.xml there does not seem to be a create a binding.xml with this name.
 
Tony Evans
Ranch Hand
Posts: 681
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have found a workaround run the generate for each schema it will create a binding.xml then rename that file to aname-binding.xml

Then in your binding execute have the following



Here is my full pom.xml
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

You got the trick.

This is exactly the way I do it for couple of years now.

regards
 
reply
    Bookmark Topic Watch Topic
  • New Topic