Hallo zusammen,
Ich hab inzwischen viele Beiträge gesehen, die das Fernsteuern von OO beschreiben. Das ist genau das, was ich brauche - meine Versuche sind auch teilweise erfolgreich. Allerdings funktioniert das Verbinden mit der Serverkomponente immer nur das erstemal, danach muss ich die soffice-Serverkomponente beenden und neu starten!
Frage 1: Wie wird die Server-Komponente von OpenOffice administriert? Start ist klar:
soffice -headless "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager"
Wie kann dieser 'sauber' wieder gestoppt werden - nicht nur Prozess beenden über den TaskManager unter Windows?
Frage 2: Alle Beispiele zeigen, wie man sich mit der Serverkomponente verbindet. Was muss aber getan werden, um den Client wieder sauber vom Server zu trennen bzw. die Clientkomponente zu beenden/aufzuräumen?
Hat irgendjemand Infos darüber bzw. Infos, wo man Infos darüber findet?
Fernsteuerung OO - Administration
Moderator: Moderatoren
Fernsteuerung OO
Ich hab inzwischen den Text in der SDK-Doku gefunden:
Developer's Guide, Kapitel 3 'Professional UNO' / 3.3 UNO Concepts / 3.3.1 UNO Interprocess Communication
Developer's Guide, Kapitel 3 'Professional UNO' / 3.3 UNO Concepts / 3.3.1 UNO Interprocess Communication
Ausserdem hab ich OO 2.0.3 installiert; jetzt scheint alles stabil zu laufen!Closing a Connection
The closure of an interprocess connection can occur for the following reasons:
The bridge is not used anymore. The interprocess bridge will close the connection when all the proxies to remote objects and all stubs to local objects have been released. This is the normal way for a remote bridge to destroy itself. The user of the interprocess bridge does not need to close the interprocess connection directly—it is done automatically. When one of the communicating processes is implemented in Java, the closure of a bridge is delayed to that point in time when the VM finalizes the last proxies/stubs. Therefore it is unspecified when the interprocess bridge will be closed.
...