I've noticed that when I do this (compile lots of bindings files all at
one time), memory usage goes through the roof.  Running the jibx
compiler in a profiler, it looks like most of the memory usage is due to
BCEL classes... has anybody else experienced this?  Is there a practical
limit to the number of bindings you can compile all at one time?

Presumably, the 1.0 (or beta4, whichever it ends up being called) will
alleviate a lot of this by providing the "include" directive in bindings
files - correct?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis
Sosnoski
Sent: Wednesday, March 30, 2005 1:48 PM
To: [email protected]
Subject: Re: [jibx-users] How does BindingFactory work ?

That's correct. If you want to use multiple bindings with the same 
classes you need to specify all the bindings to the binding compiler at 
the same time. That way they're all compiled in together and you can 
specify which one you want to use at runtime.

Maybe I should add a FAQ on using multiple bindings, since I think this 
has come up before.

  - Dennis

Mocky Habeeb wrote:

>But if your 2 different classes have the same name, Kumar, then the
>second class is not going to load into the same classloader no matter
>what you try. You'd have to either rename your 2nd class, or use
>separate classloaders.
>
>Mocky
>
>
>
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Darin
Clark
>Sent: Wednesday, March 30, 2005 9:35 AM
>To: jibx-users
>Subject: Re: [jibx-users] How does BindingFactory work ?
>
>
>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
>
>
>
>-------------------------------------------------------
>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
>
>  
>


-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users


-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to