Patent ID: 8881162

Claim:
An apparatus for managing resources in a containment framework environment, the apparatus comprising: a processor; an identifier generating unit which generates a unique identifier of an application to which a plurality of different types of resources are allocated within the containment framework environment; an application managing unit which binds the plurality of different types of resources to the unique identifier or unbinds the plurality of different types of resources from the unique identifier; a plurality of resource managing units each associated with a different type of the plurality of different types of resources and utilizing a processor which increases a counter for a use of a type of resource when a binding is established with the type of resource and decreases the counter for a use of the type of resource when the resource is unbound from the unique identifier; a resource de-allocating unit which de-allocates a resource when the counter of the resource is 0; and a storage unit storing a table in which the unique identifier and the plurality of different types of resources are associated with each other, wherein the table comprises an application identifier comprising the unique identifier of the application, a resource identifier identifying, for each resource, a type of the resource from the plurality of different types of resources, and a resource usage flag for indicating, for each resource, the association between the unique identifier and the resource, wherein when the application is shut down, the resource de-allocating unit de-allocates all of the plurality of different types of resources allocated to the application, wherein the application comprises a Java application having a life cycle.