Multi-tenant application using hierarchical bean factory container
First Claim
Patent Images
1. A method comprising:
- receiving, at a computing device having one or more processors, a hierarchical bean factory associated with an application in a multi-tenant environment of a cloud infrastructure system, a parent bean factory representing a shared application context that is shared by entities in the hierarchical bean factory and each child bean factory representing an entity specific application context that is specific to each child in the hierarchical bean factory;
receiving a request to invoke a function associated with the application from a tenant in the multi-tenant environment;
identifying tenant information from the request, wherein the tenant information is identified during login of a user of the tenant to the cloud infrastructure system;
adding the identified tenant information to a session context;
determining, by the computing device, an entity based on the tenant information in the request;
determining, by the computing device, a child bean factory in the hierarchical bean factory that is associated with the entity that is determined based on the tenant information in the request;
accessing the application using the child bean factory that is associated with the entity; and
invoking, by the computing device, the function associated with the application using the child bean factory specific to the entity and the parent bean factory associated with the child bean factory specific to the entity,wherein the child bean factory comprises services available in the parent bean factory and the child bean factory, andwherein the parent bean factory is shared by a plurality of different tenants and is configured to provision a service for a plurality of child bean factories, each of the plurality of child bean factories belonging to the plurality of different tenants, in order to enable sharing of services between a plurality of tenants in the multi-tenant environment.
1 Assignment
0 Petitions
Accused Products
Abstract
Various embodiments provide on premise and cloud deployment support for components that may not be multi-tenant enabled. A single application in a highly non-intrusive way without effecting application functional logic. On premise deployments can run with fixed default tenant and no tenant information needs to be captured anywhere anytime. The application code accesses the hierarchical bean factory to get any tenant specific or shared resources seamlessly without knowledge of multi-tenancy in functional code anywhere.
-
Citations
29 Claims
-
1. A method comprising:
-
receiving, at a computing device having one or more processors, a hierarchical bean factory associated with an application in a multi-tenant environment of a cloud infrastructure system, a parent bean factory representing a shared application context that is shared by entities in the hierarchical bean factory and each child bean factory representing an entity specific application context that is specific to each child in the hierarchical bean factory; receiving a request to invoke a function associated with the application from a tenant in the multi-tenant environment; identifying tenant information from the request, wherein the tenant information is identified during login of a user of the tenant to the cloud infrastructure system; adding the identified tenant information to a session context;
determining, by the computing device, an entity based on the tenant information in the request;determining, by the computing device, a child bean factory in the hierarchical bean factory that is associated with the entity that is determined based on the tenant information in the request; accessing the application using the child bean factory that is associated with the entity; and invoking, by the computing device, the function associated with the application using the child bean factory specific to the entity and the parent bean factory associated with the child bean factory specific to the entity, wherein the child bean factory comprises services available in the parent bean factory and the child bean factory, and wherein the parent bean factory is shared by a plurality of different tenants and is configured to provision a service for a plurality of child bean factories, each of the plurality of child bean factories belonging to the plurality of different tenants, in order to enable sharing of services between a plurality of tenants in the multi-tenant environment. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A non-transitory computer-readable medium storing a computer program product which when executed by a processor of a computer systems causes the processor to:
-
receive a hierarchical bean factory associated with an application in a multi-tenant environment of a cloud infrastructure system, a parent bean factory representing a shared application context that is shared by entities in the hierarchical bean factory and each child bean factory representing an entity specific application context that is specific to each child in the hierarchical bean factory; receive a request to invoke a function associated with the application from a tenant in the multi-tenant environment; identify tenant information from the request, wherein the tenant information is identified during login of a user of the tenant to the cloud infrastructure system; add the identified tenant information to a session context; determine an entity based on the tenant information in the request; determine a child bean factory in the hierarchical bean factory that is associated with the entity that is determined based on the tenant information in the request; access the application using the child bean factory that is associated with the entity; and cause the function associated with the application to be invoked using the child bean factory specific to the entity and the parent bean factory associated with the child bean factory specific to the entity, wherein the child bean factory comprises services available in the parent bean factory and the child bean factory, and wherein the parent bean factory is shared by a plurality of different tenants and is configured to provision a service for a plurality of child bean factories, each of the plurality of child bean factories belonging to the plurality of different tenants, in order to enable sharing of services between a plurality of tenants in the multi-tenant environment. - View Dependent Claims (20, 21, 22, 23, 24, 25)
-
-
26. A system comprising:
-
at least one processor; a memory storing a computer program product which when executed by the processor causes the processor to; receive a hierarchical bean factory associated with an application in a multi-tenant environment of a cloud infrastructure system, a parent bean factory representing a shared application context that is shared by entities in the hierarchical bean factory and each child bean factory representing an entity specific application context that is specific to each child in the hierarchical bean factory; receive a request to invoke a function associated with the application from a tenant in the multi-tenant environment; identify tenant information from the request, wherein the tenant information is identified during login of a user of the tenant to the cloud infrastructure system; add the identified tenant information to a session context;
determine an entity based on the tenant information in the request;determine a child bean factory in the hierarchical bean factory that is associated with the entity that is determined based on the tenant information in the request; access the application using the child bean factory that is associated with the entity; and cause the function associated with the application to be invoked using the child bean factory specific to the entity and the parent bean factory associated with the child bean factory specific to the entity, wherein the child bean factory comprises services available in the parent bean factory and the child bean factory, and wherein the parent bean factory is shared by a plurality of different tenants and is configured to provision a service for a plurality of child bean factories, each of the plurality of child bean factories belonging to the plurality of different tenants, in order to enable sharing of services between a plurality of tenants in the multi-tenant environment. - View Dependent Claims (27, 28, 29)
-
Specification