Java D-Bus API: Handling errors with callWithCallback()

Schmottlach, Glenn glenn.schmottlach at harman.com
Wed Dec 2 11:18:26 PST 2009




> Currently, no, no and no, having looked at the code (-:

> Sensible options would seem to be:

> 1. add public void handleError(DBusException e); as a method on
> CallbackHandler, thus requiring everyone to implement it in their
> handlers

> ... actually, I'm not sure what else would be a sensible suggestion. I
> should certainly fix it up so that it discards callbacks when errors
> occur.

I would certainly we interested in such changes. It might help the Java binding compare more favorably with the Python binding which supports these features (and more) but is generally limited to the Linux world due to its heavy dependency on GLib, D-Bus library, etc... It (the Python binding) is just too difficult to build for Windows.

I'm currently *trying* to use your library to develop test applications that run on a Windows host and talk via TCP/IP to an embedded target running D-Bus with anonymous authentication. It does work but for now it appears I'll have to settle for synchronous communication between the host (Windows PC) and the embedded target if I want to be able to receive errors. An asynchronous communication pattern would be preferred. It seems like the Java binding is 95% there . . .





More information about the dbus mailing list