[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: Service activation
From:       Havoc Pennington <hp () redhat ! com>
Date:       2004-10-02 22:55:09
Message-ID: 1096757709.4452.350.camel () localhost ! localdomain
[Download RAW message or body]

On Fri, 2004-10-01 at 13:10 +0200, Waldo Bastian wrote:
> How does automatic service activation work exactly? If a message for an 
> unregistered service is received, the service is started if it is known, 
> correct?

Only optionally, at the moment. You can send an "activate service"
message and ask that messages to the service be queued up until it's
activated iirc.

> Will the message be queued until the service has registered itself with dbus?

Yes.

> Does dbus handle messages in the meantime?

Yes, messages to other services are still handled - dbus-daemon never
blocks.

> What happens if a second message for the same (still not registered) service 
> arrives?

Also queues up. A message queue is kept for the service that's pending
activation.

> Is there a way to detect that activation of the service failed?

Yeah, you should get an error reply in that case, and all the queued
messages will also get error replies.

Havoc



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic