Hi,

I have been working on jibx for quite some time and really appreciate the 
philosophy went into building it and how the byte code enhancements helps in 
faster marshalling of the objects into XML.  I was thinking to evangelize more 
into it and was trying to figure out how could the java objects be 
marshaled/streamed one at a time rather than marshalling the whole list of 
objects. I have defined the scenario details in the below section:

A query is fetched to hit the database which would fetch say 10000 records (in 
some defined batches say 500); each record when fetched is populated into a 
custom object (some custom value object). Rather than setting the objects 
(10000 in this case) into a parent object's some list or some array list, I was 
thinking whether I can  marshal the custom value object straight way into the 
xml and as more records are fetched, every time the populated object is 
marshaled into the same xml.
So in a way, the complete list of objects (one big parent object) which could 
have been passed into the jibx marshal only in one time (which would have 
consume more memory),  every a single object would be marshaled and append in 
the same file every time it is being fetched from the object.

I think there are some apis which can be used to achieve something like the 
above scenario; like IMarshallingContext. startDocument, IXMLWriter. 
startTagClosed, IXMLWriter. endTag

Can anybody let me know your thoughts on this.

Any help is appreciated.

Regards,
Anshuk Pal Chaudhuri

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to