Despite much research in the area of wireless sensor networks in recent years, the programming of sensor nodes is still time-consuming and tedious. A new paradigm which seems to be qualified to simplify the programming of sensor networks is the Service Oriented Architecture. The composition of simple services to more complex ones can be a convenient way to design applications. To enable the sophisticated techniques known from service oriented architectures like replication and migration of services, a transaction model for sensor networks is required. In this paper, we study the applicability of the standard commit protocols Two Phase Commit (2PC) and Transaction Commit On Timeout and show in experiments with real sensor nodes that 2PC can enable consistent service migration in wireless sensor networks. Categories and Subject Descriptors C.2.4 [Computer-Communication Networks]: Distributed Systems—Distributed applications, Distributed databases; H.2.4 [Database Management]: Systems...