One of the biggest challenges in a Smart City is how to describe and dispose of the enormous and multiple sources of information, and how to share and merge it into a single infrastructure, in a timely and correct manner. A Smart City requires computational platforms, which allow the interconnection of multiple and embedded systems, such that the technology is integrated with people, and can respond to unpredictable situations. The integration of information and communications technology in these spaces, allows exploiting the wealth of information and knowledge generated in a Smart City, and improving its planning and services offered to its citizens. In this way, the people are immersed in these spaces, which are aware of their presence (contextsensitive) and adapt to their needs. The context analysis in a smart city allows making available services and information, to support ubiquitously the activities of the individuals. This study aims to analyze the emerging and ubiquitous capabilities of an Autonomic Reflective Middleware. The Middleware is based on intelligent agents that can be adapted to the existing dynamism in a city for, ubiquitously, responding to the requirements of citizens. It uses emerging ontologies that allow, not only the adaptation to the context of the moment and in real-time but also responds to unforeseen situations.