If I'm reading your problem correctly, this will hopefully be useful:

Check the javadocs for BindingDirectory; one of the functions to request
a binding factory takes a string (the name of the binding) as an
additional argument.  That's probably the one you're looking for.

On Wed, 2005-03-30 at 08:29, babloosony wrote:
> Hi All,
> 
> Say I have 2 binding.xml files like binding1.xml, binding2.xml, 
> each sharing some common binding's and also each having same mapping
> names but referring 2 different classes. Now when I run the binding
> compiler on binding1.xml  I have a jar say a.jar that contains all the
> classes generated by jibx using binding1.xml and similiarly b.jar  for
> binding2.xml.
> 
> With this code snippet 
> static IBindingFactory iBindingFactory =
> BindingDirectory.getFactory(<some class here>);
> 
> I am trying to using JiBX as (De)Serializer in AXIS 1.2 RC2. 
> 
> Now my questions is, How can I create seperate Binding Factory's 
> using my 2 jar files which have their own version of
> JiBX_XXX_bindingFactory.class. It seems that always only  the binding
> factory in first jar always getting loaded which I guess is because of
> the static bindingfactory that  I am creating using above code but If
> I remove the static keyword that I am altogether loosing the jibx
> functionality
> since I get lot of exceptions like  org.jibx.runtime.JiBXException:
> Unable to access binding information for class ...
> 
> 
> What I am confused here is how does the above code snippet work ?
> Please suggest ...
> 
> 
> Thanks & Regards,
> Kumar.
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> jibx-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jibx-users



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to