On Tue, Apr 21, 2009 at 3:08 PM, Aaron Ehrensberger
<aehrensber...@docfinity.com> wrote:

Hi Aaron,

> Is this possible?  Are their drawbacks to having two OO instances on one
> machine?  Should I be using libraries or some other way to use OO to do
> my file conversions without actually using OO instances?

yes, it's possible. You can start one instance / one user (= user
settings directory) under normal circumstances. But you can specify
different user settings directory when starting OO.o => you can start
more instances on one machine under one user. To achieve this, you
have to use -env:UserInstallation="" argument when starting OO.o.

My recommendation is to start OpenOffice.org as normal user and
configure it properly (Java, ...). Than quit OpenOffice.org and copy
user settings to several locations. For example
/opt/ooo-server/instance-1, etc. and use these directories in
-env:UserInstallation argument.

OpenOffice.org contains bugs, memory leaks and sometimes crashes. But
don't worry, there are tools to handle all these things. Example can
be oood.py written by Joerg. This daemon has simple XML configuration
file when you can put number of instances, user settings directories,
maximum usage count before instance restart, etc. See
ZIP/CZJUGInternet/Server/oood.py [1]. Ports, redirections to
instances, ... are handled in this daemon as well.

So, the last step is how to connect to instances. I implemented
samples for CZJUG lectures and you can find them in
ZIP/CZJUGInternet/Server/Klient/remote [1]. It's based on Apaches'
PoolableObjectFactory. We use something similar in our commercial
products and they run on Tomcat & Java, so, it should fit your needs
too.

Hope it helps.

[1] http://www.java.cz/dwn/1003/15588_ooffice-java-czjug0812.zip

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to