This is an interesting idea, though not currently supported. The difficulty here is that even though the IMarshallable/IUnmarshallable interfaces are present in the common library jar class files, just having these interfaces present aren't enough - the mappings still need to be present in the actual binding data structures built into the binding factory class.
To make this work I'd probably need to have some way of telling the binding compiler that you're effectively extending a precompiled binding, and it would need to initialize some of its internal data structures on that basis. This could perhaps be done with an indication on the <include> element for that binding (or perhaps using an <extend> element instead of an <include>). So I think I see how I could make it work, but it's likely to be tricky and might have some restrictions on the binding being extended. Issues such as implementing mapping extensions for polymorphism might also be difficult. All in all, I'm not willing to commit to supporting this at present but can at least explore the possibility for 1.2. - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Joanna Muench wrote: > I'm also interested in the answer to this since we are planning on doing the > exact same thing, but hadn't gotten to the stage of actually trying it out > yet. > > Thanks, Joanna > > Serkan Camurcuoglu wrote: > >> Hi all, >> We want to have a common library of jibx'ed objects which will be used >> by many modules. We want to import (i.e. include) the binding definition >> of this module to other binding definitions and use these objects. We >> have written the binding definition xml for this module, we executed the >> binding compiler on the classes and we have put them into a jar file. >> >> However, when we include the binding definition of this module into >> another binding definition and execute the binding compiler, the binding >> compiler wants to enhance the classes from the included binding >> definition again (i.e. it requires the classes from the included binding >> xml to be in the classpath, just including the jar is not enough). I >> don't think this is necessary since these classes are already passed >> through the binding compiler and they are already implementing >> IMarshallable/IUnmarshallable interfaces. Also, this is incompatible >> with our standard build structure, only the jars of a parent module (a >> module which is depended on) can be in the classpath of a child module, >> we cannot put the individual classes. >> >> Is there a convenient workaround to this problem? >> >> Best regards, >> >> Serkan >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> jibx-users mailing list >> jibx-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jibx-users >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users