Hi Abdul,
The xslt transform and validation is likely to be costly, though I don't
know how this will compare to the Hibernate step. In general, database
persistence is going to be a lot more time consuming than just
processing the XML (certainly much more time consuming than the JiBX step).
If you add some simple timing code to see how long each step takes you
should be able to get a good idea of where you need to improve
performance (assuming you *do* need to improve performance). You might
want to try writing the transform results to the file system rather than
a ByteArrayOutputStream, if you're working with very large documents -
building these in memory could really slow your performance. Finally,
you can probably avoid the transform and validation step completely by
first modifying your JiBX binding to work with the original input
format, and then adding program logic to do the necessary validation in
code (perhaps using post-set methods for this purpose).
It'd be great to eventually have code generation for binding validation,
but even though I'm rewriting the code generation from schema now
validation's not at the top of my list. Anyone interested in taking on
this part of things?
- Dennis
[EMAIL PROTECTED] wrote:
Hello,
I am lodging huge amount of xml-data into data base the steps I am
following are
I) jaxp - for transform using xslt and validation against schema
(transform and validation)
II) Jibx - for un-marshalling
III) Hibernate for persistence
to convert out-put stream to input stream for validation and for jibx
I am using ByteArrayOutputStream / ByteArrayInputStream
Did any body using this combination is their any performance issues?
Thanks in advance.
Abdul
------------------------------------------------------------------------
***************************************************************************
* This e-mail was scanned by a McAfee e500 appliance when sent
***************************************************************************
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users