https://bugs.documentfoundation.org/show_bug.cgi?id=127625

Oleg Shchelykalnov <olegsh...@yandex.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Oleg Shchelykalnov <olegsh...@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.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to