The common understanding of e-learning has shifted over the last decade from the traditional learning objects portals to learning paradigms that enforces constructivism, discovery learning and social collaboration. Such type of learning takes place outside the formal academic settings (e.g., seminars or lectures) where a learning environment is created by using some kind of web application mashup tools. The use of these mashup tools moves the learning environment further away from being a monolithic platform towards providing an open set of learning tools, an unrestricted number of actors, and an open corpus of artifacts, either pre-existing or created by the learning process – freely combinable and utilizable by learners within their learning activities. However, collaboration, mashup and contextualization can only be supported through services, which can be created and modified dynamically based on middlewares to suit the current needs and situations of learners. This article identifies middlewares suitable for creating effective personal learning environment based on Web 2.0 mashup tools. This article also proposed a general framework for constructing such personal learning environments based on Ambient Learning realized by learning agents and the use of Enterprise Mashup servers