DBus Java method call?

Arigead captain.deadly at gmail.com
Tue Dec 1 12:21:08 PST 2009


Schmottlach, Glenn wrote:
> Yes, AbstractConnection is an abstract but it's not an Interface (e.g. it provides a partial implementation). If you have a DBusConnection instance available you can call 'callMethodAsync' on that (since it inherits from AbstractConnection).
> 
> 
> -----Original Message-----
> From: dbus-bounces at lists.freedesktop.org [mailto:dbus-bounces at lists.freedesktop.org] On Behalf Of Arigead
> Sent: Tuesday, December 01, 2009 2:24 PM
> To: Schmottlach, Glenn
> Cc: dbus at lists.freedesktop.org
> Subject: Re: DBus Java method call?
> 
> Schmottlach, Glenn wrote:
>> You can find it (callMethodAsync) in the AbstractConnection class.
>>
>>
>> -----Original Message-----
>> From: dbus-bounces at lists.freedesktop.org [mailto:dbus-bounces at lists.freedesktop.org] On Behalf Of Arigead
>> Sent: Tuesday, December 01, 2009 1:14 PM
>> To: dbus at lists.freedesktop.org
>> Subject: DBus Java method call?
>>
>> Hello all,
>>     I've been looking whatever info I can find on Java DBus such as the
>> API [1] and the High Level Documentation mentioned in the DBus Java Page
>> [2].
>>
>> Basically that High Level Documentation gives an example of an
>> asynchronous call as:
>>
>> DBusAsyncReply<Boolean> stuffreply =
>>    conn.callMethodAsync(remoteObject, "methodname", arg1, arg2);
>>
>> But I can't find that "callMethodAsync" method in the API Documentation
>> [1]. I simply want to call a Dbus method defined by RhythmBox and ignore
>> any response. Actually I don't think it has any response.
>>
>> Could anybody suggest the API methods for Java DBus which achieve this?
>>
>> Thanks a million for any help
>>
>>
>> [1] http://dbus.freedesktop.org/doc/dbus-java/api/
>> [2] http://dbus.freedesktop.org/doc/dbus-java/
>> _______________________________________________
>> dbus mailing list
>> dbus at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/dbus
>>
> 
> 
> Thanks for the mighty quick response and sorry for being stupid with
> this DBus Java, but that AbstractConnection is Abstract. I can't see
> where I get an AbstractConnection from.
> 
> If I ever get this to work I hope there'll be time to write up a basic
> document so that other people can do some simple Java DBus. Maybe there
> is a clear document that shows the steps involved in using this API but
> I've not found it as yet. Maybe a Tutorial or something of the like.
> 
> Thanks for helping anyhow, still a struggle ;-)
> _______________________________________________


My Homer moment of the day. Thanks for that ;-)



More information about the dbus mailing list