System And Method For Supporting Partitions In A Multitenant Application Server Environment


Updated over 1 year ago

Abstract

SYSTEM AND METHOD FOR SUPPORTING PARTITIONS IN A MULTITENANT APPLICATION SERVER ENVIRONMENT5 COPYRIGHT NOTICEA portion of the disclosure of this patent document containsmaterial which is subject to copyright protection. The copyrightowner has no objection to the facsimile reproduction by anyoneof the patent document or the patent disclosure, as it appears10 in the Patent and Trademark Office patent file or records, butotherwise reserves all copyright rights whatsoever.Field of Invention:15   [0001] Embodiments of the invention are generally related to application servers andcloud environments, and are particularly related to a system and method for supporting partitions in a multitenant application server environment.Background:20   [0002] Application servers generally provide a managed environment within whichsoftware applications can be deployed and run. Cloud-based environments allow applications to run within and take advantage of the distributed resources provided by a cloud. Such environments can support large numbers of users or tenants, some of which may have specific requirements that are particular to that user or tenant.  These are some25 examples of the type of environments in which embodiments of the present invention can be used.Summary:[0003] In accordance with an embodiment, described herein is a system and method30 for supporting partitions in a multitenant application server environment. In accordance with an embodiment, an application server administrator (e.g., a WLS administrator) can create or delete partitions; while a partition administrator can administer various aspects of a partition, for example create resource groups, deploy applications to a specific partition, and reference specific realms for a partition.  Resource groups can be globally defined at the domain, or35 can be specific to a partition. Applications can be deployed to a resource group template at the domain level, or to a resource group scoped to a partition or scoped to the domain. The system can optionally associate one or more partitions with a tenant, for use by the tenant.Brief Description of the Figures:40   [0004] Figure 1 illustrates a system for supporting multi-tenancy in an application-1-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL server, cloud, or other environment, in accordance with an embodiment.[0005] Figure 2 further illustrates a system for supporting multi-tenancy in anapplication server, cloud, or other environment, in accordance with an embodiment.[0006] Figure 3 further illustrates a system for supporting multi-tenancy in an5   application server, cloud, or other environment, in accordance with an embodiment.[0007] Figure 4 illustrates a domain configuration for use with an exemplary multi-tenant environment, in accordance with an embodiment.[0008] Figure  5  further  illustrates  an  exemplary  multi-tenant  environment,  inaccordance with an embodiment.10   [0009] Figure 6 illustrates the use of partitions in an application server, cloud, orother environment, in accordance with an embodiment.[00010] Figure 7 further illustrates the use of partitions in an application server, cloud,or other environment, in accordance with an embodiment.[00011] Figure 8 illustrates a method of using partitions in an application server,15   cloud, or other environment, in accordance with an embodiment.Detailed Description:[00012] In accordance with an embodiment, described herein is a system and methodfor supporting partitions in a multitenant application server environment.  In accordance with20 an embodiment, an application server administrator (e.g., a WLS administrator) can create or delete partitions; while a partition administrator can administer various aspects of a partition, for example create resource groups, deploy applications to a specific partition, and reference specific realms for a partition. Resource groups can be globally defined at the domain, or can be specific to a partition. Applications can be deployed to a resource group template at25 the domain level, or to a resource group scoped to a partition or scoped to the domain. The system can optionally associate one or more partitions with a tenant, for use by the tenant.Application Server (e.g., Multi-Tenant, MT) Environment[00013] Figure 1 illustrates a system for supporting multi-tenancy in an application30   server, cloud, or other environment, in accordance with an embodiment.[00014] As illustrated in Figure 1, in accordance with an embodiment, an applicationserver (e.g., multi-tenant, MT) environment 100, or other computing environment which enables the deployment and execution of software applications, can be configured to include and operate according to a domain 102 configuration that is used at runtime to define an35   application server domain.[00015] In accordance with an embodiment, the application server can include one ormore partitions 104 that are defined for use at runtime. Each partition can be associated with-2-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL a globally unique partition identifier (ID) and partition configuration, and can further include one or more resource groups 124, together with a reference to a resource group template 126 and/or partition-specific applications or resources 128. Domain-level resource groups, applications and/or resources 140 can also be defined at the domain level, optionally with a 5   reference to a resource group template.[00016] Each resource group template 160 can define one or more applications A 162,B 164, resources A 166, B 168, and/or other deployable applications or resources 170, and can be referenced by a resource group. For example, as illustrated in Figure 1, resource group 124 in partition 104 can reference 190 resource group template 160.10   [00017] Generally, a system administrator can define partitions, domain-level resourcegroups and resource group templates, and security realms; while a partition administratorcan define aspects of their own partition, for example, by creating partition-level resourcegroups, deploying applications to the partition, or referencing specific realms for the partition.[00018] Figure 2 further illustrates a system for supporting multi-tenancy in an15   application server, cloud, or other environment, in accordance with an embodiment.[00019] As illustrated in Figure 2, in accordance with an embodiment, a partition 202can include, for example, a resource group 205 which includes a reference 206 to a resource group template 210, a virtual target (e.g., virtual host) information 207, and a pluggable database (PDB) information 208.  A resource group template (e.g., 210) can define, for20   example, a plurality of applications A 211 and B 212, together with resources such as a JavaMessage Server (JMS) server 213, store-and-forward (SAF) agent 215, mail sessioncomponent 216, or Java Database Connectivity (JDBC) resource 217.[00020] The resource group template illustrated in Figure 2 is provided by way ofexample; in accordance with other embodiments, different types of resource group templates25   and elements can be provided.[00021] In accordance with an embodiment, when a resource group within a partition(e.g., 202) references 220 a particular resource group template (e.g., 210), information associated with a particular partition can be used in combination with the referenced resource group template, to indicate a partition-specific information 230, for example a30 partition-specific PDB information. The partition-specific information can then be used by the application server to configure resources, for example a PDB resource, for use by the partition. For example, partition-specific PDB information associated with partition 202 can be used, by the application server, to configure 232 a container database (CDB) 236 with an appropriate PDB 238, for use by that partition.35   [00022] Similarly, in accordance with an embodiment, a virtual target informationassociated with a particular partition can be used to define 239 a partition-specific virtual target 240, for use by the partition, e.g., baylandurgentcare.com, which can then be made-3-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL accessible via a uniform resource locator (URL), e.g., http://baylandurgentcare.com.[00023] Figure 3 further illustrates a system for supporting multi-tenancy in anapplication server, cloud, or other environment, in accordance with an embodiment.[00024] In accordance with an embodiment, a system configuration such as a5 config.xml configuration file, is used to define a partition, including configuration elements for resource groups associated with that partition, and/or other partition properties. Values can be specified per-partition using property name/value pairs.[00025] In accordance with an embodiment, a plurality of partitions can be executedwithin a managed server/ cluster 242, or a similar environment which can provide access to10   a CDB 243, and which are accessible via a web tier 244. This allows, for example, a domainor partition to be associated with one or more of the PDBs (of the CDB).[00026] In accordance with an embodiment, each of the plurality of partitions, in thisexample partition A 250 and partition B 260, can be configured to include a plurality of resources associated with that partition.  For example, partition A can be configured to15 include a resource group 251 which contains an application A1 252, application A2 254, and JMS A 256, together with a datasource A 257 associated with PDB A 259, wherein the partition is accessible via a virtual target A 258. Similarly, partition B 260 can be configured to include a resource group 261 which contains an application B1 262, application B2 264, and JMS B 266, together with a datasource B 267 associated with PDB B 269, wherein the20   partition is accessible via a virtual target B 268.[00027] While several of the above examples illustrate use of CDB and PDBs, inaccordance with other embodiments, other types of multi-tenant or non-multi-tenant databases can be supported, wherein a particular configuration can be provided for each partition, for example through the use of schemas, or the use of different databases.25Resources[00028] In accordance with an embodiment, a resource is a system resource,application, or other resource or object that can be deployed to a domain of the environment. For example, in accordance with an embodiment, a resource can be an application, JMS,30 JDBC, JavaMail, WLDF, data source, or other system resource or other type of object that can be deployed to a server, cluster, or other application server target.Partitions[00029] In accordance with an embodiment, a partition is a runtime and administrative35 subdivision or slice of a domain that can be associated with a partition identifier (ID) and configuration, and can contain applications and/or refer to domain-wide resources through the use of resource groups and resource group templates.-4-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL [00030] Generally, a partition can contain its own applications, refer to domain wideapplications via resource group templates, and have its own configuration. Partitionable entities can include resources, for example JMS, JDBC, JavaMail, WLDF resources, and other components, such as JNDI namespace, network traffic, work managers, and security 5 policies and realms. In the context of a multi-tenant environment, the system can be configured to provide tenant access to the administrative and runtime aspects of partitions associated with a tenant.[00031] In accordance with an embodiment, each resource group within a partitioncan optionally reference a resource group template. A partition can have multiple resource10 groups, and each of them can reference a resource group template. Each partition can define properties for configuration data that is not specified in the resource group templates to which the partition"s resource groups refer. This enables the partition to act as a binding of deployable resources defined in a resource group template, to specific values for use with that partition. In some cases, a partition can override configuration information specified by a15   resource group template.[00032] In accordance with an embodiment, a partition configuration, as defined forexample by a config.xml configuration file, can include a plurality of configuration elements, for example: "partition", which contains the attributes and child elements that define the partition; "resource-group", which contains the applications and resources deployed to the20   partition; "resource-group-template", which contains applications and resources defined bythat template; "jdbc-system-resource-override", which contains a database-specific servicename, user name, and password; and "partition-properties", which contains property keyvalues that can be used for macro replacement in resource group templates.[00033] Upon  startup,  the  system  can  use  the  information  provided  by  the25 configuration file to generate partition-specific configuration elements for each resource, from the resource group template.Resource Groups[00034] In accordance with an embodiment, a resource group is a named, fully-30 qualified collection of deployable resources that can be defined either at a domain or partition level, and can reference a resource group template. The resources in a resource group are considered fully-qualified in that the administrator has provided all of the information needed to start or connect to those resources, for example the credentials for connecting to a data source, or the targeting information for a application.35   [00035] A system administrator can declare resource groups at the domain level, or atthe partition level. At the domain level, a resource group provides a convenient way to group related resources. The system can manage resources declared in a domain-level resource-5-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL group the same as ungrouped resources, so that the resources can be started during system start-up, and stopped during system shut-down. An administrator can also stop, start, or remove a resource in a group individually, and can act on all the resources in a group implicitly by operating on the group. For example, stopping a resource group stops all of the 5 resources in the group that are not already stopped; starting the resource group starts any resources in the group that are not already started; and removing the resource group removes all of the resources contained in the group.[00036] At the partition level, a system or partition administrator can configure zero ormore resource groups in a partition, subject to any security restrictions.  For example, in a10   SaaS use case, various partition-level resource groups can refer to domain-level resourcegroup templates; while in a PaaS use case, partition-level resource groups can be createdthat do not refer to resource group templates, but instead represent applications and theirrelated resources that are to be made available within that partition only.[00037] In accordance with an embodiment, resource grouping can be used to group15 together applications and the resources they use as a distinct administrative unit within the domain. For example, in the medical records (MedRec) application described below, a resource grouping defines the MedRec application and its resources. Multiple partitions can run the same MedRec resource group, each using a partition-specific configuration information, such that the applications that are part of each MedRec instance are made20   specific to each partition.Resource Group Templates[00038] In accordance with an embodiment, a resource group template is a collectionof deployable resources that are defined at a domain level, that can be referenced from a25 resource group, and some of the information required to activate its resources may not be stored as part of the template itself, such that it supports the specification of partition level configuration. A domain can contain any number of resource group templates, each of which can include, for example, one or more related Java applications and the resources on which those applications depend. Some of the information about such resources may be the same30   across all partitions, while other information may vary from one partition to the next. Not allconfiguration need be specified at the domain level - partition level configuration can insteadbe specified in the resource group template through the use of macros, or propertyname/value pairs.[00039] In accordance with an embodiment, a particular resource group template can35 be referenced by one or more resource groups. Generally, within any given partition, a resource group template can be referenced by one resource group at a time, i.e., not simultaneously by multiple resource groups within the same partition; however, it can be-6-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL referenced at the same time by another resource group in a different partition. The objectcontaining the resource group, e.g., the domain or partition, can use property name/valueassignments to set the value of any tokens in the resource group template. When thesystem activates a resource group template using a referencing resource group, it can5 replace those tokens with values set in the resource group"s containing object. In somecases, the system can also use statically-configured resource group templates and partitionsto generate runtime configuration for each partition/template combination.[00040] For example, in a SaaS use case, the system can activate the sameapplications and resources multiple times, including once for each partition that will use 10 them. When an administrator defines a resource group template they can use tokens to represent the information that will be supplied elsewhere. For example, the username to use in connecting to a CRM-related data resource can be indicated in the resource group template as \${CRMDataUsername}.15   Tenants[00041] In accordance with an embodiment, in a multi-tenant environment, such as amulti-tenant (MT) application server environment, a tenant is an entity that can be represented by, or otherwise associated with, one or more partitions and/or one or more tenant-aware applications.20   [00042] For example, tenants can represent distinct user organizations, such asdifferent external companies, or different departments within a particular enterprise (e.g., HR and Finance departments), each of which can be associated with a different partition. A tenant globally unique identity (tenant ID) is the association of a particular user, at a particular moment in time, with a particular tenant.  The system can derive which tenant a25   particular user belongs to from the user identity, for example by referring to a user identitystore. The user identity enables the system to enforce those actions that a user is authorizedto perform, including, but not limited to, which tenant the user may belong.[00043] In accordance with an embodiment, the system enables isolation of theadministration and runtime of different tenants from each other.  For example, tenants can30 configure some behaviors of their applications, and resources to which they have access. The system can ensure that a particular tenant cannot administer artifacts belonging to another tenant; and, at runtime, that the applications working on behalf of a particular tenant refer only to resources associated with that tenant, and not to resources associated with other tenants.35   [00044] In accordance with an embodiment, a tenant-unaware application is one thatcontains no logic dealing with tenants explicitly, such that any resources that the application uses may be accessible regardless of what user submitted a request to which the application-7-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL is responding. In contrast, a tenant-aware application includes logic that explicitly deals withtenants.  For example, based on a user"s identity the application can derive the tenant towhich the user belongs and use that information to access tenant-specific resources.[00045] In accordance with an embodiment, the system enables users to deploy5   applications that are explicitly written to be tenant-aware, so that application developers canobtain the tenant ID of a current tenant.  The tenant-aware application can then use thetenant ID to handle multiple tenants that are using a single instance of the application.[00046] For example, the MedRec application, which supports a single doctor"s officeor hospital, can be exposed to two different partitions or tenants, e.g., a Bayland Urgent Care 10   tenant, and a Valley Health tenant, each of which is able to access separate tenant-specific resources, such as separate PDBs, without changing the underlying application code.Exemplary Domain Configuration and Multi-Tenant Environment[00047] In accordance with an embodiment, applications can be deployed to a15   resource group template at the domain level, or to a resource group that is scoped to apartition or scoped to the domain.  Application configuration can be overridden usingdeployment plans specified per-application, or per-partition.  Deployment plans can also bespecified as part of a resource group.[00048] Figure 4 illustrates a domain configuration for use with an exemplary multi-20   tenant environment, in accordance with an embodiment.[00049] In accordance with an embodiment, when the system starts a partition, itcreates virtual targets (e.g., virtual hosts) and connection pools, including one for eachpartition, to respective database instances, according to the provided configuration.[00050] Typically, each resource group template can include one or more related25 applications and the resources on which those applications depend. Each partition can provide configuration data that is not specified in the resource group templates to which it refers, by providing a binding of the deployable resources in resource group templates to specific values associated with the partition; including, in some cases, overriding certain configuration information specified by the resource group template. This enables the system30 to activate an application represented by a resource group template differently for each partition, using the property values each partition has defined.[00051] In some instances, a partition may contain resource groups that do not refer toresource group templates, or that directly define their own partition-scoped deployable resources.  Applications and data sources that are defined within a partition are generally35 available only to that partition. Resources can be deployed so that they can be accessed from across partitions using partition:/, or domain:.-8-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL [00052] For  example,  a  MedRec  application  can  include  a  plurality  of Javaapplications, a data source, a JMS server, and a mail session.  To run the MedRecapplication for multiple tenants, the system administrator can define a single MedRecresource group template 286, declaring those deployable resources in the template.5   [00053] In contrast to domain-level deployable resources, the deployable resourcesdeclared in a resource group template may not be fully configured in the template, or cannot be activated as-is, since they lack some configuration information.[00054] For example, the MedRec resource group template may declare a data sourceused by the applications, but it may not specify a URL for connecting to the database.10 Partitions associated with different tenants, for example, partition BUC-A 290 (Bayland Urgent Care, BUC) and partition VH-A 292 (Valley Health, VH) can reference one or more resource group templates, by each including a MedRec resource group 293, 294 that references 296, 297 the MedRec resource group template. The reference can then be used to create 302, 306, the virtual targets / virtual hosts for each tenant, including a virtual host15 baylandurgentcare.com 304 associated with the BUC-A partition, for use by the Bayland Urgent Care tenant; and a virtual host valleyhealth.com 308 associated with the VH-A partition, for use by the Valley Health tenant.[00055] Figure  5  further  illustrates  an  exemplary  multi-tenant  environment,  inaccordance with an embodiment. As illustrated in Figure 5, and continuing the example from20   above, in which two partitions reference the MedRec resource group template, in accordancewith an embodiment, a servlet engine 310 can be used to support a plurality of tenantenvironments, in this example a Bayland Urgent Care Physician tenant environment 320,and a Valley Health Physician tenant environment 330.[00056] In accordance with an embodiment, each partition 321, 331 can define a25 different virtual target on which to accept incoming traffic for that tenant environment, and a different URL 322, 332 for connecting to the partition and to its resources 324, 334, including in this example either a bayland urgent care database, or a valley health database respectively. The database instances can use compatible schemas, since the same application code will execute against both databases.  When the system starts the partitions,30   it can create the virtual targets and connection pools to the respective database instances.Partition-Related Features[00057] In accordance with an embodiment, an application server administrator (e.g.,a WLS administrator) can create or delete partitions; while a partition administrator can 35   administer various aspects of a partition, for example create resource groups, deploy applications to a specific partition, and reference specific realms for a partition.  Resource groups can be globally defined at the domain, or can be specific to a partition. Applications-9-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL can be deployed to a resource group template at the domain level, or to a resource group scoped to a partition or scoped to the domain. The system can optionally associate one or more partitions with a tenant, for use by the tenant.[00058] Figure 6 illustrates the use of partitions in an application server, cloud, or5 other environment, in accordance with an embodiment. As shown in Figure 6, in accordance with an embodiment, a first or particular partition A 400 can be associated with a partition ID 402, resource group 404 with optional resource group template reference 406, and/or one or more partition-specific resource groups, applications or resources 410. A particular resource group template A 420 can define one or more applications 422, resources 424, or resource10 configuration tokens 426, such that when a resource group of a partition (e.g., Partition A) references 430 that resource group template, the applications, resources, and resource configuration tokens can be used to configure 432 the resource group, including defining a virtual target information 412 and/or associating a virtual target 438 (e.g., baylandurgentcare.com) with the resource group, which in turn is associated with a target15   system 440 (e.g., a computer server, or a cluster).[00059] Figure 7 further illustrates the use of partitions in an application server, cloud,or other environment, in accordance with an embodiment. As shown in Figure 7, in accordance with an embodiment, a second partition B 450 can be similarly associated with a partition ID 452, resource group 454 with optional resource group template reference 456,20 and/or one or more partition-specific resource groups, applications or resources 460. A second resource group template B 470 can similarly define one or more applications 472, resources 474, or resource configuration tokens 476. A resource group of a partition (e.g., Partition B) can reference 480, 482 either of the resource group templates A and B, such that the applications, resources, and resource configuration tokens of the selected resource25   group template (in this example, resource group template B) can be used to configure 484the resource group, including defining a virtual target information 462 and/or associating avirtual target 488 (e.g., valleyhealth.com) with the resource group, which in turn is associatedwith the target system.[00060] Figure 8 illustrates a method of using partitions in an application server,30 cloud, or other environment, in accordance with an embodiment. As shown in Figure 8, in accordance with an embodiment, at step 490, an application server environment is provided, including a domain for execution of software applications, and one or more partitions and resource groups, wherein each partition provides an administrative and runtime subdivision of the domain and can include one or more resource groups, and wherein each resource35   group is a collection of deployable applications or resources that can reference a resourcegroup template.[00061] At step 492, each partition is associated with a configuration information so-10-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL that, upon startup, the system can use the configuration information associated with thepartition to generate partition-specific configuration elements for each resource group andresource therein, including from any referenced resource group template.[00062] At step 494, each resource group, or partition which includes that resource5   group, can be associated with a virtual target (e.g., virtual host) information that defines atarget to which that resource group or partition should be targeted and deployed.[00063] At step 496, each partition can be optionally associated with a tenant in amultitenant environment, for use by that tenant.10   Partition Administration[00064] In accordance with an embodiment, a system administrator can create, deleteand migrate partitions; and can also create and assign targets. A partition administrator can administer various aspects of a partition at the partition level, for example creating resource groups, or deploying applications to a resource group within a partition.   A system15 administrator can set or change the security characteristics of a partition (e.g., the security realm), or reference a shared (domain-level) resource group or resource group template.Partition Name and Partition ID[00065] In accordance with an embodiment, each partition has two identifiers: a20 partition name, which is a human-readable name that is specified at partition creation time, and is the identifier used by humans to administer the partition, and by code that prefers a human-friendly identifier; and a partition ID, which is a less readable name that is generated for a partition, for example as a UUID, and is therefore unique over time and space, and is used by code that needs a globally unique ID to differentiate between partitions. A partition"s25 name and ID can be retrieved from both the partition config bean, and the invocation context (ComponentlnvocationContext).Partition Configuration[00066] In accordance with an embodiment, the partition configuration is contained in30   config.xml and includes the following configuration elements:partition - this is the top-level configuration element and contains the attributes and child elements that define the partition. The partition element will be defined at the domain level. A partition can contain resource groups, system resource override elements, and attributes that define the realm, network mapping to partition, SSL info, and other partition information.35 resource-group - this element contains the applications and resources deployed to the partition. A resource group can extend a resource group template so that common applications or resources can be defined in one place and shared among partitions. Names-11-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL within a resource group must be unique across the partition - a validation error will occur if the same name is defined within different resource group template or resource groups. resource-group-template - even though this element is defined at the domain level and contains applications and resources, since all the resource groups that reference a resource 5 group template from within a partition get all the resources and applications, logically the resource group templates contain configuration that are specified for a partition. configuration-properties - this element contains property key values. The configuration properties can be specified at both the partition level as well as the resource groups at the domain level. The model for partition-specific overrides is that most common attributes that 10 need to be partition-specific should be contained in a child configuration element of the partition, which makes it easier for customers to specify commonly used partition-specific configuration via specific configuration elements.Partition Portability15   [00067] In accordance with an embodiment, a partition can be exported from onedomain (e.g., source domain) and imported into another domain (e.g., target domain). Exporting a partition creates a partition archive that can be copied to another system and imported into the target domain, without requiring shutdown or restart of either domain.20   Partition and Resource Group Migration[00068] In accordance with an embodiment, a resource group within a partition can bemigrated from one virtual target to another, thus enabling serviceability.Tenant and Partition relationship25   [00069] In accordance with an embodiment, a tenant can be defined outside of theapplication server environment, for example in a Fusion Applications (FA) or Fusion Middleware (FMW) environment.Mapping of Hosts and URLs to Partitions30   [00070] In accordance with an embodiment, each container/request handler canestablish a partition context and push it onto an invocation context manager (ComponentlnvocationContext Manager), for subsequent use. A partition table can be used to help containers do this by providing a mapping from hostname/port/URL to partition name. Mapping to a partition can be accomplished by matching one or more of the following:35 Hostname (often a virtual hostname); Port Number; URI path prefix. A partition can have one or more virtual targets associated with it (via the partition"s available targets list). Similar to a virtual host, a virtual target provides the capability to specify one or more hostnames, an-12-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL optional URI path prefix and an optional port number. If an incoming request matches this information on any of the virtual targets associated with a partition, then it is assumed that the request is intended for applications in that partition.5   Targeting of Partition Resources[00071] In accordance with an embodiment, the use of a virtual target virtualizes thetarget for a resource group, which makes the resource group configuration portable without having any attributes of the physical resources, thus allowing a system administrator change the physical topology of the system without affecting the clients of the partition. Targeting is10   specified at the resource group level, and applies to all resources contained in the resourcegroup. A set of available targets and a default target can be specified at the partition level. Avirtual target can be targetable to a managed server or cluster, or to multiple servers orclusters, and can be shared by more than one resource group in the same partition.[00072] If the resource group has targets specified, then those will be used as targets15 for the resources contained within the resource group. If the resource group does not have targets specified, but the default target at the partition level is set, then that will be used as the target for all resources contained within the resource group. If the resource group does not have targets specified and the default target at the partition level is not set, then the resources in the resource group will not be targeted.20   [00073] In the simple case, where there is one target, or all resource groups aretargeted to one cluster or a managed server, the cluster or managed server can be specified in the virtual target and the same virtual target can be the default target for a partition. In such a case the resource groups are not required to be specifically targeted to the virtual target.25Application Deployment and Configuration[00074] In accordance with an embodiment, applications and shared libraries can bedeployed to a resource group within a partition. Application configuration can be overridden using deployment plan mechanisms provided by the application server.  Deployment plans30   can be specified per application per partition, or as part of a resource group.Networking Layer[00075] In accordance with an embodiment, the system can include a networking layerthat associates incoming requests with a partition ID. The association can be made for all 35   the network protocols including http / https traffic, RMI / T3, RMI/ NOP and other protocols. For example, based on a request URL (e.g., a virtual target / virtual host plus optional path), the networking layer can determine a target partition for the request, and add the determined-13-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL partition ID to the request"s execution context. If each partition is configured to use a unique virtual target and network access point (NAP) combination, then the system can map all requests on a particular virtual target to the corresponding partition. If partitions are instead configured to share the same host name in virtual targets, then a URI prefix can be defined 5 for the virtual target, so that the system can determine the appropriate partition based on the virtual target plus configured URI prefix.Work Manager[00076] In accordance with an embodiment, the system can include partition-aware10 work managers. Each work manager can be configured with a relative priority of workload, together with a minimum threads constraint to ensure that a thread is always available for processing work requests to avoid deadlock, and a maximum threads constraint to limit the number of concurrent threads executing requests. A partition-specific work manager can be created for each partition, to ensure that applications within each partition do not exceed their15   configured fair share of thread resource usage for that partition.Security Realms[00077] In accordance with an embodiment, each partition can reference a securityrealm. Realms can also be referenced by multiple partitions. When a request enters the 20 system, the system can determine the appropriate partition from the virtual target, and store the partition ID in the request"s execution context. Subsequently, when an authentication or authorization action is required, the system can utilize the partition ID to determine the appropriate realm to use.25   JNDI[00078] In  accordance with  an  embodiment,  a  partition-aware JNDI  frameworkenables applications to bind named objects and retrieve them on a per-partition basis. During startup and deployment time, application server containers can associate each partition-specific application with a corresponding partition ID. The JNDI framework can then30 utilize that partition ID during a bind or lookup of a named object. Partition-specific objects can be isolated from other partitions, which allows different instances of the same application to register partition-specific objects with the same JNDI name.Namespace and Scoping35   [00079] In accordance with an embodiment, the named components of a partition, forexample, resource groups, applications can be scoped to a partition. A partition is scoped to a domain.  Resource group templates are defined and scoped at the domain and must be-14-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL unique across the domain. Resources and applications defined in a resource group template are scoped to the resource group template.  If a partition refers to more than one resource group template, the names of resources that are defined in the resource group templates being referred need to be unique across them. 5Runtime MBeans[00080] In accordance with an embodiment, a ServerRuntimeMBean acts as the rootnode in the runtime MBean tree. This hierarchy contains all of the runtime MBeans for the application server including clusters, server channels, JTA, and application resources. The10 system can include a partition-specific branch for each partition to the ServerRuntime MBean, including that the PartitionRuntimeMBean will contain component specific MBeans for application server subsystems including JMS, JDBC, Deployment, WLDF, Coherence, and Connectors. Runtime MBeans for partition-specific resources exist in the partition-specific hierarchy and not in the global hierarchy at the ServerRuntime MBean level, which15   allows for partition-specific monitoring and statistics.REST Administration APIs[00081] In accordance with an embodiment, a REST interface can be provided.RESTful resources provide significant benefits in the administration of middleware: The 20 reliance on http/https protocols means that access can be enabled and controlled using standard firewalls and front end host configurations. This is especially important in an MT environment, where a particular partition administrator might be permitted access to only a narrow slice of the ports and channels supported by the application server domain.25   Multi-Edit Sessions[00082] In accordance with an embodiment, the system can support multi-editsessions. A partition administrator can change any of the partition related configuration in a named specific edit session. APIs associated with the ConfigurationManagerMBean allow for start/save/activate of partition-specific edit sessions.30End-to-End Lifecycle Management[00083] In  accordance  with  an  embodiment,  providers  can  be  used  to  wireinfrastructure components needed to run a particular application, for example Oracle Traffic Director (OTD),  database,  Coherence,  or JMS components.   For example,  in some35 embodiments, the partition-specific instances of a particular application can share a same database instance. A resource group template can refer to a domain-level JDBC system resource for the single database instance, and all partitions which reference that resource-15-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL group template can then use the same database instance. In accordance with anembodiment, the several partition-specific instances of an application can connect to differentdatabase instances with common, or compatible schemas. The resource group template candeclare a JDBC system resource, leaving some of the configuration to be specified in the5 respective partition sections of the configuration file (e.g., config.xml). Examples of suchpartition-level configuration for data sources can include a URL to which to connect, and/orthe user credentials for authenticating and authorizing access to the referenced databaseinstance.[00084] In accordance with an embodiment, the data source implementation can10 create a separate physical connection pool for each partition to an assigned PDB within a container database, which allows the PDBs to appear to the application server as separate databases, and each partition"s specific credentials to be used to establish one or more connections for the partition within that partition"s pool. Alternatively, the system can support connection-switching across PDBs, in which a separate PDB can be provided for each15   partition, but the data source implementation shares a single connection pool to the containerdatabase which owns the PDBs. When an application submits data requests, it does so inthe context of a partition.  The system can then use the partition ID to switch a sharedconnection to the correct partition context, before executing the request on that connection.[00085] The present invention may be conveniently implemented using one or more20 conventional general purpose or specialized digital computer, computing device, machine, or microprocessor, including one or more processors, memory and/or computer readable storage media programmed according to the teachings of the present disclosure. Appropriate software coding can readily be prepared by skilled programmers based on the teachings of the present disclosure, as will be apparent to those skilled in the software art.25   [00086] In some embodiments, the present invention includes a computer programproduct which is a non-transitory storage medium or computer readable medium (media) having instructions stored thereon/in which can be used to program a computer to perform any of the processes of the present invention. The storage medium can include, but is not limited to, any type of disk including floppy disks, optical discs, DVD, CD-ROMs, microdrive,30   and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flashmemory devices, magnetic or optical cards, nanosystems (including molecular memory ICs),or any type of media or device suitable for storing instructions and/or data.[00087] The foregoing description of the present invention has been provided for thepurposes of illustration and description.  It is not intended to be exhaustive or to limit the35 invention to the precise forms disclosed. Many modifications and variations will be apparent to the practitioner skilled in the art. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling-16-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL others skilled in the art to understand the invention for various embodiments and with various modifications that are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents.-17-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL Claims:What is claimed is:5   1. A system for supporting partitions in an application server environment, comprising:one or more computers, including an application server environment having a domain for execution of software applications, and one or more partitions and resource groups,wherein each partition provides an administrative and runtime subdivision ofthe domain and can include one or more resource groups, and10 wherein each resource group is a collection of deployable applications orresources that can reference a resource group template.2. The system according to Claim 1, wherein the system can optionally associate one ormore partitions with a tenant, for use by the tenant.153. The system according to Claim 1 or 2, wherein each resource group templateincludes one or more related applications together with resources upon which thoseapplications depend.20 4. The system according to any preceding Claim, wherein the plurality of deployable resources comprises one or more of partition-aware resources, and partition-unaware resources.5. The system according to any preceding Claim, wherein each partition can be25   associated with a local namespace.6. The system according to any preceding Claim, wherein each partition can beassociated with a partition name or identifier, which enables the system to determine apartition context so that requests can be communicated to appropriate partitions.307. The system according to any preceding Claim, wherein the system is provided withina cloud environment, to support multiple tenants operating within the cloud environment.8. The system according to any preceding Claim, wherein the system supports multiple 35   edit sessions of the partitions.9. The system according to any preceding Claim, wherein each resource group, or the-18-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL partition which includes that resource group, can be associated with a virtual target information that defines a target to which that resource group or partition should be targeted and deployed, and wherein a web tier component includes a routing information, which maps the virtual target for a particular partition to a corresponding target, so that requests for that 5   partition are directed to the appropriate target.10. A method for supporting partitions in an application server environment, comprising:providing, at one or more computers, an application server environment having adomain for execution of software applications, and one or more partitions and resource 10   groups,wherein each partition provides an administrative and runtime subdivision of the domain and can include a resource group, andwherein each resource group is a collection of deployable applications or resources that can reference a resource group template. 1511. The method according to Claim 10, further comprising optionally associating one ormore partitions with a tenant, for use by the tenant.12. The method according to Claims 10 or 11, wherein each resource group template20   includes one or more related applications together with resources upon which thoseapplications depend.13. The method according to any of Claims 10 to 12, wherein the plurality of deployableresources comprises one or more of partition-aware resources, and partition-unaware25   resources.14. The method according to any of Claims 10 to 13, wherein each partition can beassociated with a local namespace.30 15. The method according to any of Claims 10 to 14, wherein each partition can be associated with a partition name or identifier, which enables a partition context to be determined so that requests can be communicated to appropriate partitions.16.    The method according to any of Claims 10 to 15, wherein the method is performed 35   within  a  cloud  environment,  to  support  multiple  tenants  operating  within  the  cloud environment.-19-Oracle Matter No.: ORA140744-WO-PCT Attorney Docket No. ORACL-05527WO0 ORACLE CONFIDENTIAL 1017. The method according to any of Claims 10 to 16, further comprising providing support for multiple edit sessions of the partitions.18. The method according to any of Claims 10 to 17, wherein each resource group, or the partition which includes that resource group, can be associated with a virtual target information that defines a target to which that resource group or partition should be targeted and deployed, and wherein a web tier component includes a routing information, which maps the virtual target for a particular partition to a corresponding target, so that requests for that partition are directed to the appropriate target.19. A computer program comprising program instructions in machine-readable format that when executed by a computer system cause the computer system to perform the method of any of Claims 10 to 18.15   20.    A computer program product comprising the computer program of Claim 19 stored in a non-transitory machine-readable data storage medium.21.    A non-transitory computer readable storage medium, including instructions stored thereon which when read and executed by one or more computers cause the one or more 20   computers to perform the steps comprising:providing an application server environment having a domain for execution of software applications, and one or more partitions and resource groups,wherein each partition provides an administrative and runtime subdivision ofthe domain and can include a resource group, and25 wherein each resource group is a collection of deployable applications orresources that can reference a resource group template. 30 -20-Oracle Matter No.: ORA140744-WO-PCT

Information

Application ID 201647040699
Invention Field COMPUTER SCIENCE
Date of Application 2016-11-29
Publication Number 21/2017

Applicants

Name Address Country Nationality
Oracle International Corporation 500 Oracle Parkway Mail Stop 5op7 Redwood Shores, California 94065 (US). U.S.A. U.S.A.

Inventors

Name Address Country Nationality
MORDANI, Rajiv 1038 Linz Terrace Sunnyvale California USA 94089 usa. U.S.A. U.S.A.
ISLAM, Nazrul 1555 Vista Club Circle, Apt. 202 Apt. 202 Santa Clara California USA 95054. U.S.A. U.S.A.
DIPOL, Joseph 558 Endicott Drive Sunnyvale California USA 94087. U.S.A. U.S.A.
BOWER, Peter 20 South Gate Road Hollis New Hampshire USA 03049. U.S.A. U.S.A.
QUINN, Timothy 791 Tisbury Lane Lake Forest Illinois USA 60045. U.S.A. U.S.A.
FEIGEN, Lawrence 104 Redmont Road Watchung New Jersey USA 07069. U.S.A. U.S.A.
KUMAR, Abhijit 1125 Yorkshire Drive Cupertino California USA 95014. U.S.A. U.S.A.

Specification

Documents

Name Date
Priority Document [29-11-2016(online)].pdf 2016-11-29
Form 5 [29-11-2016(online)].pdf 2016-11-29
Power of Attorney [29-11-2016(online)].pdf 2016-11-29
Description(Complete) [29-11-2016(online)].pdf_54.pdf 2016-11-29
Drawing [29-11-2016(online)].pdf 2016-11-29
Form5_After Filing_07-12-2016.pdf 2016-12-07
Description(Complete) [29-11-2016(online)].pdf 2016-11-29
OTHERS [09-12-2016(online)].pdf 2016-12-09
Form 18 [17-01-2017(online)].pdf 2017-01-17
Marked Copy [09-12-2016(online)].pdf 2016-12-09
Form 3 [22-02-2017(online)].pdf 2017-02-22
Correspondence by Agent_Proof of Right_27-02-2017.pdf 2017-02-27
Other Patent Document [24-02-2017(online)].pdf 2017-02-24
Miscellaneous_form30-Online.pdf 2017-02-27
201647040699-FER.pdf 2020-06-01
201647040699-FORM 3 [01-12-2020(online)].pdf 2020-12-01
201647040699-FORM 4(ii) [27-11-2020(online)].pdf 2020-11-27
201647040699-FER_SER_REPLY [29-12-2020(online)].pdf 2020-12-29
201647040699-CLAIMS [29-12-2020(online)].pdf 2020-12-29
201647040699-OTHERS [29-12-2020(online)].pdf 2020-12-29
201647040699-Information under section 8(2) [01-12-2020(online)].pdf 2020-12-01

Orders

Applicant Section Controller Decision Date URL