Joined: 04 Nov 2004
Location: Magdeburg, Germany
|Posted: Sun Jan 22, 2006 8:32 am Post subject: Check OOo process is running?
In the udk documentation "Transparent Use of Office UNO Components" (http://udk.openoffice.org/common/man/spec/transparentofficecomponents.html) is written the following about the bootstrap method:
|"... it first bootstraps a local component context by calling the method com.sun.star.comp.helper.Bootstrap.createInitialComponentContext(null). Then it tries to establish a named pipe connection to a running office by using the com.sun.star.bridge.UnoUrlResolver service. If the connection fails, an office process is started. ..." |
This is exactly my problem: For installing a Java-AddOn I need to ensure, no OOo process is running. I can check that with a UnoUrlResolver if I know, that soffice listenes to a given port. But how do you know that soffice is running, if there is no entry "ooSetupConnectionURL" value in the <OfficePath>/share/registry/data/org/openoffice/Setup.xcu?
For any hints how to check(with Java), if there is a OOo process running I'd be really greatful. (does the API provide any functionality?)
Thanks in advance