<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><p dir="ltr">Hi,</p>
<p dir="ltr">I am trying to add a Signal Handler on a DirectConnection.</p>
<p dir="ltr">So I used:</p>
<blockquote><p dir="ltr"><i>DirectConnection conn = new DirectConnection("tcp:host=" + HOST +",port=4242");</i></p>
<p dir="ltr"><i>conn.addSigHandler(new DBusMatchRule("signal","/<wbr>thomas/server","CpuLoadChange"<wbr>), new Handler());</i><br>
</p>
</blockquote>
<p dir="ltr"><br></p>
<blockquote><p dir="ltr"><i>public class Handler implements DBusSigHandler<DBusSignal>{</i></p>
<p dir="ltr"><i>    @Override</i><br>
<i>    public void handle(DBusSignal sig) {</i><br>
<i>        try {</i><br>
<i>            System.out.println(Arrays.<wbr>toString(sig.getParameters()))<wbr>;</i><br>
<i>        } catch (DBusException e) {</i><br>
<i>            // TODO Auto-generated catch block</i><br>
<i>            e.printStackTrace();</i><br>
<i>        }</i><br>
<i>    }</i></p>
<p dir="ltr"><i>}</i></p><p dir="ltr"><i></i><br>
</p>
</blockquote>

<p dir="ltr">Problem is, that the handle method isn't executed. Is there a fix for this?</p>
I can't use a DBusInterface, because the server isn't implementing one. <br><div id="DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><table style="border-top: 1px solid #aaabb6; margin-top: 10px;">
        <tr>
                <td style="width: 105px; padding-top: 15px;">
                        <a href="https://www.avast.com/?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/logo-avast-v1.png" style="width: 90px; height:33px;"/></a>
                </td>
                <td style="width: 470px; padding-top: 20px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Diese E-Mail wurde von einem virenfreien Computer gesendet, der von Avast geschützt wird. <br /><a href="https://www.avast.com/?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color: #4453ea;">www.avast.com</a>          </td>
        </tr>
</table>
<a href="#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>                                           </div></body>
</html>