OpenOffice 2.0

Werner Punz werpu at gmx.at
Tue Dec 21 23:29:13 UTC 2004


JohnOfArc wrote:
> On Tue, 21 Dec 2004 22:47:18 +0100, Werner Punz wrote:
> 
> 
>>Henrik Nilsen Omma wrote:
>>
>>
>>>think the new database component is built on Java.
>>>
>>
>>You are right, OpenOffice usese HypersonicSQL a database which basically
>>originally was developed as a plain java solution which can be embedded
>>into other java apps. It is not the worst database out there (although
>>also not the best, which still in my opinion is postgresql, giving the
>>huge variety of OSS databases)
>>
>>Why they chose hypersonic over others still is somewhat a miracle to me,
>>does not really fit to the project itself. HSQL would be the typical
>>choice for having an embedded DB in a java server, but under this
>>circumstances postgres or firebird definitely would have been more
>>suitable.
>>
> 
> http://dba.openoffice.org/miscellaneous/dba20.html
> 
> what I get out of this is the desire to spare us mere mortals the hassle
> of having to use a client/server model (overkill) when a simple file based
> approach will suffice. I won't argue the merits of any one solution with
> you (I'm 99.9% certain you'd win <g>), but I have to say this approach
> suits me fine, though I might have preferred SQLite.
> 
Well no client server is sort of not true in this case.
You can embedd Hypersonic into java applications but
they seem to opt for a jdbc approach (at least from what I could gather 
in between the lines), which basically means
that they have to sort of bridge the C code openoffice into a
jdbc bridge via jni and then they open a socket connection into
a Hypersonic server running in a separate VM in the background.
Kindof overkill unless I misunderstood the docs (who knows the 
description only mentions jdbc... so they might just leave the jdbc port 
open for others)

In the long run they probably will have to add hooks into whatever db 
interface the current system provides, KDE and Gnome both currently seem 
to move slowly towards high level db apis (thank god, given the mess 
ODBC is in Linux...)


> Now if I can only get it to recognize/use my Java install... (currently
> Sarge).
> 
Easy.... dont go for the packages java installs just fine without the 
debs, just get the binaries either from Blackdown or Sun (whatever suits 
your needs better)
execute the bin files and voila it expands the whole vom+jre into a 
single dir, then symlink the java interpreter into a dir of your path 
and you are done and have a running java...

Java Webstart is equally easy, just press on a jnlp file in your 
favorite browser and associate the javaws in the java bin dir with the 
file type and you are set with webstart.


Java is very clean in the resources it occupies, it basically just sits 
in a single dir ... removing it is just a matter of deleting the dir.





More information about the ubuntu-users mailing list