[Libreoffice-bugs] [Bug 127625] Java application wait for MessageDispatcher thread when using remote bridge
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Sep 19 07:04:17 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=127625
Oleg Shchelykalnov <olegshtch at yandex.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Oleg Shchelykalnov <olegshtch at yandex.ru> ---
Found documentation here
https://wiki.openoffice.org/wiki/Uno/Remote/Tutorials/Disposing_Remote_Bridges
and example here:
https://www.programcreek.com/java-api-examples/?code=LibreOffice/noa-libre/noa-libre-master/src/ag/ion/bion/officelayer/internal/application/connection/RemoteOfficeConnection.java
This snippet allows application to be correctly closed:
Object oBridgeFactory =
xcomponentcontext.getServiceManager().createInstanceWithContext("com.sun.star.bridge.BridgeFactory",
xcomponentcontext);
XBridgeFactory xBridgeFactory = (XBridgeFactory)
UnoRuntime.queryInterface(XBridgeFactory.class, oBridgeFactory);
for (XBridge bridge :
xBridgeFactory.getExistingBridges()) {
XComponent xComponent = (XComponent)
UnoRuntime.queryInterface(XComponent.class, bridge);
xComponent.dispose();
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190919/f5a64345/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list