Service Level Agreement becomes the prevailing business model for specifying the QoS requirements of the web services in a complex service based environments. In Such case it is very difficult to maintain certain QoS requirements which include service efficiency, service availability, service throughput, and some chronological requirements for the web services since the usage of the service vary widely over time. In This paper middleware architecture is proposed which dynamically allocates the clustered resources to the services. The proposed middleware takes the responsibility to generate the SLA document on the fly based on the popularity of services deployed in the cluster. This feature of adaptive SLA generation is done in for the application server, and where as the middleware architecture eliminates the need for the service provider to manually provide the Service Level Agreement to the Application Service Provider (which needs to be replaced often). This paper discusses the middleware architecture, its implementation and sample scenario which illustrates the usage of the middleware in the real case. © 2019, Institute of Advanced Scientific Research, Inc. All rights reserved.