Hallo *,

On Mon, Mar 14, 2005 at 09:33:43AM +0100, Thorsten Kamann wrote:
> Bernd Eilers schrieb:
> >
> >1.) Man steuert ein oder mehrere OOo Instanzen über die OOo API und 
> >startet diese Instancen mit -invisible flag. Dabei benutzt man Xvfb 
> >als X Server an den diese Instancen connecten. Da Zugriffe über die 
> >API auf OOo nicht threadsafe sind kann man nicht parallel von mehreren 
> >Requests die auf dem Webserver gleichzeitig eintreffen auf ein und 
> >dasselbe OOo zugreifen sondern muss die Requests serialisieren und 
> >ggf., d.h. bei entsprechendem zu erwartendem höherem Load, an mehrere 
> >OOo Instancen balancen. Macht man das nicht ist die Wahrscheinlichkeit 
> >das OOo bei parallelem Zugriff abstürzt relativ hoch.
> 
> Hmm, hatte ich befürchtet das die Zugriffe nicht threadsafe sind. Damit 
> hat sich diese Möglichkeit schon erledigt.

http://udk.openoffice.org/python/oood/index.html
,----
| ood.py - A simple daemon for OpenOffice.org
|
| oood.py is a daemon, which controls a pool of 'anonymous' office instances
| (workers).
|
| The workers can be used as backend for Java/python/C++ batch processes for
| document conversion, mail merges, etc. You don't need to rewrite your current
| scripts, a client connects to a daemon-controlled office just as if would
| connect to a normal office. Up to now, I only checked the functionality for
| batch clients, for server clients (e.g. a tomcat or zope), there may be some
| problems, you should simply try it.
|
| The daemon ensures, that only one client at a time is connected to one
| OpenOffice instance (because one OOo instance in general can't cope with more
| than one scripter). Workers get restarted after a certain amount of uses or
| after office crashes.
|
| A client can connect to a daemon as if it would connect to a normal
| 'non-daemoned' office, so you don't need to adapt your scripts.
`----

ciao
Christian
-- 
NP: Paradise Lost - True Belief

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Antwort per Email an