Patent ID: 8448163

Claim:
A method of provisioning J2EE-based web applications for deployment in an Open Services Gateway initiative (OSGi) environment comprising steps at a server of: detecting a J2EE-based web application bound for deployment and, responsive thereto; examining a Web application ARchive (WAR) file contained in the web application for identifying dependencies of the web application on other resources or services; obtaining a list of available provision sources that have resources to fulfill the dependencies; querying said list of provision sources for obtaining import statements that identify how to access the resources to fulfill the dependencies; and assembling said import statements into an OSGi bundle for deployment and execution in said OSGi environment; wherein said querying step further includes steps of: delivering to each of said provision sources content of said J2EE-based web application and, at each said provision source; scanning said content for any dependencies corresponding to the resources available from said provision source; and returning a response to said query that includes a resource corresponding to at least one said dependency.