The implementation of high quality complex wireless sensor networks requires a good level of flexibility both at compile-time (configuration) and at run-time (management). The twofold goal is on one hand to improve the overall “fitness” of the application implemented to the changing environment and on the other hand to limit the footprint of the software. This paper presents a flexible and lightweight mechanism to implement dynamic linking of application modules over a wireless sensors network. The proposed approach is based on a client/server approach and a two-phases remote linking aimed at optimizing the resource usage on the network nodes. A prototypical implementation for MantisOS on TelosB nodes is also described.