Patent ID: 7783758

Claim:
A computer-implemented method for implementing connections in an enterprise environment, the computer-implemented method comprising: receiving, at a container, a first request, from a component within the container, for a first connection between the component and a first resource manager, wherein the container and the component include computer executable code running on a processor, the computer executable code having been loaded into the processor from a computer readable storage medium; providing, by the container to the component, the first connection between the component and the first resource manager; receiving, at the container, a second request, from the component, for a connection associated with the component; determining, by the container, if a deployment hint is received from an application, the application being arranged to substantially communicate with the component, the deployment hint indicating if the second request is for a connection to the first resource manager; if a deployment hint is received, defining the second request as local if the deployment hint indicates that the second request is for a connection to the first resource manager, and defining the second request as global if the deployment hint indicates that the second request is not for a connection to the first resource manager; if a deployment hint is not received, defining the second request as local; if the second request is local, determining if the first connection is sharable; providing, by the container to the component, the first connection in response to the second request when it is determined that the second request is local and the first connection is sharable; providing, by the container to the component, a second connection between the component and the first resource manager in response to the second request when it is determined that the second request is local and the first connection is not sharable, wherein the second connection is distinct from the first connection; and providing, by the container to the component, a connection between the component a second resource manager when it is determined that the second request is global.