Creating objects on the same bus_name from multiple processes.

Thiago Macieira thiago at kde.org
Sat May 8 00:23:12 PDT 2010


Em Sábado 8. Maio 2010, às 00.02.18, Mike MacHenry escreveu:
> I have a program that is designed as follows: There is web service
> running on Apache that is capable of spawning off daemon processes
> that serve the request. These daemon processes are producing audio
> streams that are sent to icecast. I would like each one of these
> streams to register a D-Bus object that other web services can connect
> to and control the audio.
> 
> The problem I'm having is that when I create one of these processes,
> it creates a bus_name and an object_path and that all works fine. But
> when I try to run a second one, the bus_name already belongs to the
> first process. I cannot simply add an object to the agreed upon
> bus_name.
> 
> I don't think I can give each instance its own bus_name because there
> needs to be an XML file in /etc/dbus-1/system.d/ for the server to
> govern permissions.
> 
> Does anyone know the proper way to use D-Bus to do something like this?

The proper way to do this is to not use the system bus for this task.

You want an "Apache http bus" which doesn't exist.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20100508/179c9817/attachment-0001.pgp>


More information about the dbus mailing list