[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The lightbulb just isn't going on....



Hi Ray,

Tue, 09 May 2000 Ray Allis wrote:
>I'm still missing some insight. ;) How does this apply to the
>samples/XML/Store?

XML is a different story IMO. :-)

>I don't see how I get an object into the database with methods to be
>executed 

We have evaluated three different solutions of storing XML in ozone:

1. Patch an existing XML parser like Xerces to use the ozone XML
   DOM factory for creating parsed/new element nodes as proxies
   in ozone.
   pros: - most intuitive solution
   cons: - hard to maintain a patched software package
         - very time consuming, b/c of a lot of ozone RMI calls

2. Pass the XML string to the server side and use an XML parser to
   parse this string.
   pros: - very fast, b/c of server-side method calls
   cons: - impossible to get relative references, b/c we are on server-side

3. Parse the XML string on client side and pass the DOM or SAX to ozone
   and produce an ozone representation (proxies) on server-side.
   pros: - independency of other software packages
         - not the slowest solution ;-)

At last we decided solution 3, b/c it is a middle-way between solution 1 and 2.

Ok, maybe you see an other way of storing xml documents in a database?!?!?
(for example an own, lightweight but very ozone-optimized XML parser?)

>on the server.  Is this what the Repository is about?  Looks
>interesting, but
>"XMLRepository.java:13: Package org.ozoneDB.xml.repository not found in
>import".
>(This is ozone-0.4.zip)
>
>In samples/XML I changed:
>                pDoc = store_parseAtClientSide (docName);
>to:
>                pDoc = store_parseAtServerSide (docName);
>
>called it 'Stores'.  I don't see the 27 times improvement. 
>

The repository package is/was a case study to evaluate ozone with
more then one single XML file in the database and an API much more
usefull for customers. I will remove this package in the next distro
b/c it will be replaced by the infozone project. Once again we hope
to come out with the infozone stuff in the next days. (the proto-type
is already working ;-)

Regards,
Lars
--
________________________________________________________________
Lars Martin                         mailto:lars@softwarebuero.de
softwarebuero m&b (SMB)              http://www.softwarebuero.de