The Grid community is actively working on defining, deploying and standardizing protocols, mechanisms, and infrastructure to support decentralized, seamless, and secure interactions across distributed resources. Such an infrastructure will enable a new generation of autonomic applications where the application components, Grid services, resources and data interact as peers. In this paper we describe the development and operation of a prototype application that uses such peerto-peer interactions between services on the Grid to enable the autonomic optimization of an oil reservoir.