Java Signal Handler

Sören Busse <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <[email protected]>
Hi,
I am trying to add a Signal Handler on a DirectConnection.
So I used:
DirectConnection conn = new DirectConnection("tcp:host=" + HOST +",port=4242");
conn.addSigHandler(new DBusMatchRule("signal","/thomas/server","CpuLoadChange"), new Handler());





public class Handler implements DBusSigHandler<DBusSignal>{
    @Override

    public void handle(DBusSignal sig) {

        try {

            System.out.println(Arrays.toString(sig.getParameters()));

        } catch (DBusException e) {

            // TODO Auto-generated catch block

            e.printStackTrace();

        }

    }
}




Problem is, that the handle method isn't executed. Is there a fix for this?
I can't use a DBusInterface, because the server isn't implementing one. 

	
		
			
		
		Diese E-Mail wurde von einem virenfreien Computer gesendet, der von Avast geschützt wird. www.avast.com

_______________________________________________
dbus mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.