Andrew, Thanks for replying. Yes, I want only the instance of OpenOffice that is launched from my java application to be listening. If a user launches OpenOffice any other way, it would not be listening on the same port. I too have had unreliable results with oooforum.org and have done an extensive search on the web for this topic. Your suggestion about the two instances is interesting, thanks for it. I may look into that.
Lastly, placing: <prop oor:name="ooSetupConnectionURL"> <value>socket,host=localhost,port=2002;urp;StarOffice.ServiceManager</value </prop> Into the maind.xcd file seems to be unreliable. Is there something else that I should be doing to launch OpenOffice in listening mode? -----Original Message----- From: Andrew Douglas Pitonyak [mailto:and...@pitonyak.org] Sent: Thursday, November 29, 2012 4:19 PM To: d...@openoffice.apache.org Cc: Steele, Raymond; users@openoffice.apache.org Subject: EXTERNAL: Re: Listening Mode - Single instance On 11/29/2012 10:18 AM, Steele, Raymond wrote: > Is it possible to open a single instance of calc via loadComponentFromURL() > in listening mode. The instructions here, > http://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Starting_OpenOffice.org_in_Listening_Mode, > define editing a Setup.xcu file, but the information here, > https://issues.apache.org/ooo/show_bug.cgi?id=117803, says that Setup.xcu no > longer exist in version 3.3. Apparently, I could update the main.xcd file, > but I only want listening mode when a specific application opens calc because > another application will need to close that instance. I'd prefer not use a > script to launch soffice -accept=socket,host=0,port=2002;urp;. > > Raymond > > My initial reaction is that "Calc does not listen, OpenOffice listens". So are you saying that as soon as a Calc document is opened, you want OOo to start listening? Off hand, I don't think that you can do that. I believe that the choice must be made when OOo begins (not sure how that plays into the whole quick-starter stuff). You do not mention your operating system, but, you might be able to configure another copy of OOo for a different user or location that is configured to use it. I have seen comments on this in the past, I don't remember the details. I ran a quick google query using running two instances of OOo at the same time and it returned links into oooforum.org, which has been highly unreliable lately, and I could not connect. Give it a try and maybe it will work for you. The idea is to use two different OOo profiles so that you can have two different instances. Then, you can choose which instance you want to run. -- Andrew Pitonyak My Macro Document: http://www.pitonyak.org/AndrewMacro.odt Info: http://www.pitonyak.org/oo.php --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@openoffice.apache.org For additional commands, e-mail: users-h...@openoffice.apache.org