domenica 3 gennaio 2016

How to deploy Apps on WLS 12.2.1 Domain Partitions & Demonstration of Isolation of Domain Partitions

You have learned :

Now we will create a second domain partition (dp2) and we will deploy the previous sample InMemRepClient.war in both  dp1 and dp2 partitions, so we will be able to demonstrate the isolation of applications deployed on domain partitions.

Here we have learned how to create a Domain Partition (dp1), now we will create a second Domain Partition named dp2:

Create a Virtual Target:

You need to Lock & Edit the em console:

Click on Create:

Set /dp2 as Url prefix (we already have setted /dp1):

Now we will have:

http://localhost:7101/dp1 (if we not use OTD)
http://localhost:7102/dp1 (if we not use OTD)
http://localhost:7101/dp2 (if we not use OTD)
http://localhost:7102/dp2 (if we not use OTD)

http://localhost:8080/dp1 (if we use the OTD)
http://localhost:8080/dp2 (if we use the OTD)

Select MTCluster:

Activate Changes:

We can now create a second domain partition:

Click on Create:

Remember to check the OTD:

Select the Virtual Target previous created:

Create a Resource Group:

Click on Create:

Start the second (dp2) domain partition:

Click on Close:

You have now a wls_domain with as AdminServer, a Dynamic Cluster (MTCluster) with 2 Managed WLS Server, each managed server has two partitions (dp1 & dp2):

Everything is Up & Running.

We can deploy now InMemRepClient.war on dp1 and dp2.

We start with dp1, to deploy an Application you must click on RG1 item:

Now you can select the Deployments tab:

Lock & Edit the console:

Click on Deploy:

Click on Browse and select your InMemRepClient.war file:

In the previous POST we have copied InMemRepClient.war into /home/weblogic/Oracle directory:

Select it and click on Open:

Click on Next:

Click on Deploy:

Click on Close:

Activate Changes:

The Application is deployed but in Prepared state, we need to start and activate it:

Select and Start the Application:

Click on Start:

Application is now Up & Running on domain partition dp1:

You can now deploy the same Application on the second partitition dp2:

Select WebLogic Domain->Environment->Resource Groups or click on the item Resource Group as in the next image:

Select RG2 and redeploy InMemRepClient.war on dp2 (now you know how to do it) :

Now we have the same application deployed on two domain partition:

We can test our Application:

For demo scope at the moment we do not use the OTD (we will use it later):

In the browser insert the url:

As you can see in the next image, the application is Running on MTCluster-1, here we can create a session with a pair of values (name/value)

I have inserted (with the Add button):
name:7101/dp1(so we can identify where this session was created)
value: dp1 session

This is the result after the click on the Add Button:

Now insert the url:

As you can see in the next image we are now on server MTCluster-2, but we are in the same Domain Partition (dp1) and so (thanks to "in memory replication" of the sessions) we can see the previous session created on MTCluster-1 (High Availability):

Now insert the url:

We are now on server MTCluster-1, but on dp2 Domain Partition, the partitions are isolated each other, so we cannot read the previous session created on dp1:

We can create a new Session:

Now insert the url:

We are now on MTCluster-2 but in the same dp2 domain partition so we can see the previous session created on MTCluster-1 on dp2:

Now we can Test the Application with OTD (OTD and his instance must be up and running):

You can use:

For dp1 on MTCluster-1 and MTCluster-2 (with round-robin):

For dp2 on MTCluster-1 and MTCluster-2 (with round-robin):

Nessun commento:

Posta un commento