<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:olegshtch@yandex.ru" title="Oleg Shchelykalnov <olegshtch@yandex.ru>"> <span class="fn">Oleg Shchelykalnov</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Java application wait for MessageDispatcher thread when using remote bridge"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127625">bug 127625</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>UNCONFIRMED
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Java application wait for MessageDispatcher thread when using remote bridge"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127625#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Java application wait for MessageDispatcher thread when using remote bridge"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127625">bug 127625</a>
from <span class="vcard"><a class="email" href="mailto:olegshtch@yandex.ru" title="Oleg Shchelykalnov <olegshtch@yandex.ru>"> <span class="fn">Oleg Shchelykalnov</span></a>
</span></b>
<pre>Found documentation here
<a href="https://wiki.openoffice.org/wiki/Uno/Remote/Tutorials/Disposing_Remote_Bridges">https://wiki.openoffice.org/wiki/Uno/Remote/Tutorials/Disposing_Remote_Bridges</a>
and example here:
<a href="https://www.programcreek.com/java-api-examples/?code=LibreOffice/noa-libre/noa-libre-master/src/ag/ion/bion/officelayer/internal/application/connection/RemoteOfficeConnection.java">https://www.programcreek.com/java-api-examples/?code=LibreOffice/noa-libre/noa-libre-master/src/ag/ion/bion/officelayer/internal/application/connection/RemoteOfficeConnection.java</a>
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();
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>