Method and apparatus for placing units for executing an application in a distributed system

The invention relates to a method and a device for placing the units, for example. Motes for executing an application in a distributed system, in which a placement of the units is provided by a service layer, and providing a communication between the units by a communication layer. One field of application of the invention is, for example, process automation, such as in industrial plants or in building management systems.