This paper addresses the design and implementtation of a residential gateway: MyServer, which is to provide services regarding home security, inventory tracking, facility management, and family care in a smart home system. Inherently an interactive and multitasking system driven by peripherals connected through wireless sensor networks, the overall MyServer architecture is designed with six clearly defined core service modules operating on a message oriented middleware (MOM) framework. Each of these modules is implemented with a programming template utilizing event publish/subscribe messaging mechanism. This paper also demonstrates a successful implementation of the proposed MyServer system in an emulated home environment, where peripherals are connected through ZigBee wireless sensor network.