Original Publish Date : 5/30/2016
Below are the steps to create partitions in Weblogic Server 12.2.1 :
Step 1 :
– Create a weblogic domain (say Partition_From_Windows_Domain)
FMW control is the recommended console for Partition management, so it is good to enable it at the time of domain creation.
To enable FMW control select “Oracle Enterprise Manager-Restricted JRF – 12.2.1 [em]” template in the configuration wizard, as shown below :


To access FMW control access : http://<host>:<port>/em

NOTE : We will continue using Weblogic Admin console to create partitions in this example.
Partition names : coke-partition and pepsi-partition
Partition specific realms : coke_realm and pepsi_realm
Partition specific Admin Users : coke_admin and pepsi_admin
Virtual Targets for these partitions : coke-vt and pepsi-vt
Partition Specific Resource Groups : coke-rg1 and pepsi-rg1
Step 2 :
Before creating a partition, you need to create a security realm (then create an Admin user inside this realm, say coke_admin and pepsi_admin) and virtual target for this partition :
To create a new security realm :
Login to console -> Security Realms -> new (say ‘coke_realm’ and ‘pepsi_realm’) -> “create default providers within this new realm” (check)




Now create a Virtual target :
Login to console -> + Environment -> Virtual Targets -> new (say coke-vt) and target it to Weblogic Server (say Admin Server) -> specify a URI Prefix

Step 3 :
Lets create a partition now :
Login to console -> Domain Partitions -> new (say coke-partition)-> then target it to a Virtual target (say coke-vt) -> select the security realm for this partition from the drop down menu (say coke_realm)



Step 4 :
Create a Resource Group inside domain partition




Step 5 :
Check the Identity Domains of the partitions :


Step 6 :
You can now deploy applications to Global scope / to a resource group of a partition


To access the application deployed to your partition use the following URL :
http://<host>:<port>/coke/Weblogic_SP_sample_App/login.jsp ==> Try to login with the coke Admin and also test the login using weblogic user.
Perform similar tests with application deployed on pepsi-partition and global scoped deployment.
