— Pervasive and ubiquitous computing is enabling the implementation of “smart environments”, i.e., environments where applications support and enhance the abilities of their occupants in executing tasks. To provide the appropriate behavior, these applications must be able to acquire and manage information about the resources populating the smart environment. We propose an integrated resource management solution targeted to highly dynamic and heterogeneous smart environments. The proposed middleware is based on the Java Management Extensions (JMX) and on the Mobile Agent (MA) technology. JMX provides a unifying interface to different monitoring/management mechanisms, thus simplifying the integration with very heterogeneous distributed resources. MAs simplify the processing and the aggregation of raw management data to dynamically consider and achieve application-specific management hus providing the flexibility and the level of abstraction needed in the addressed scenario.