OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Check OOo process is running?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
zaphod
Power User
Power User


Joined: 04 Nov 2004
Posts: 51
Location: Magdeburg, Germany

PostPosted: Sun Jan 22, 2006 8:32 am    Post subject: Check OOo process is running? Reply with quote

Hi folks

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:
Quote:
"... 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
Christoph
Back to top
View user's profile Send private message
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Mon Jan 23, 2006 9:27 am    Post subject: Reply with quote

lirinci wrote some interesting code in C++ here (at the bottom of the thread) :
Working with a Spreadsheet Document in C++ http://www.oooforum.org/forum/viewtopic.phtml?t=8664&start=15&postdays=0&postorder=asc&highlight=
I start from this thread to write the section on thread here (again in C++)
http://perso.wanadoo.fr/moutou/MyUNODoc_HTML/UNOCppAPI3.html
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group