Hi all,

I've been using JiBX 1.2.1 + CodeGen on a few large and complex
schemas used in inter-bank communication.
So far JiBX proved to be fast, effective, and reliable. CodeGen is
also a great improvement over what was available in 1.6.
Great job Dennis!

Given the structure and size (> 200MB) of the XML files that we expect
to receive we cannot hold the collections of some objects in memory
during both unmarshalling and marshalling. Currently this is the only
option because the generated classes have their List implementation
hardcoded to ArrayList.

I have been playing with class decorators and I have been able to
nicely alter the generated classes structure adding a few extra fields
and methods needed by our infrastructure but now I need to change the
implementation of List from ArrayList to our own derived class that
overrides the add() and get() methods to perform our business logic.

At the moment I'm thinking of using the ClassDecorator finish() method
to scan the completed class structure and perform the changes. I also
thought about using the valueAdded() method but it seems to be called
_after_ the value is added to the class and so it seems to provide no
real value over a final pass in the finish() method.

An alternative approach could be using the binding file and customize
the List type implementation using the factory attribute but this
works for unmarshalling only.

Has anyone tried this before and care to comment?

In the meantime I will keep experimenting the CodeGen route and also
digging into the CodeGen sources to understand what happens but this
is a longer road :-)

Thanks everybody.
-- 
Andrea Cisternino, Ferrara, Italy
LinkedIn profile: http://www.linkedin.com/in/andreacisternino
Foto: http://acisternino.smugmug.com

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to