Java generic signal handler
ericcarmody at hotmail.com
Thu Feb 11 10:00:43 PST 2010
I'm kinda having trouble understanding how to implement this, how would i
connect to the session bus and just listen for messages? Or is that even
String addr = System.getenv("DBUS_SESSION_BUS_ADDRESS");
BusAddress address = new BusAddress(addr);
Transport conn = new Transport(address);
What would come next if i wanted to listen to all activity on the session
Matthew Johnson-3 wrote:
> On Wed Feb 10 15:45, minimulisha03 wrote:
>> So what your saying is there is pretty much no way to do this?
>> Matthew Johnson-3 wrote:
>> > In that case you may wish to use the low-level API which does not
>> > provide an
>> > object mapping, but you can't use that as you don't know in advance
>> > the
>> > objects are going to be.
>> > 0.
> Sorry, that was very badly phrased of me.
> You can't use the object mapping in the high-level bindings, since you
> know what the objects are in advance, therefore there isn't much to be
> by using the high-level bindings over the low-level ones. If you use the
> low-level bindings then you can inspect every received signal.
> D-Bus Java
> dbus mailing list
> dbus at lists.freedesktop.org
View this message in context: http://old.nabble.com/Java-generic-signal-handler-tp27523741p27551713.html
Sent from the Free Desktop - dbus mailing list archive at Nabble.com.
More information about the dbus