Side-by-Side Deployment for Deploying ADF application in Production Environment

Advanced Oracle ADF 12c Course JDeveloper and Generic Topics
17 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€64.33
List Price:  €91.90
You save:  €27.57
£55.09
List Price:  £78.70
You save:  £23.61
CA$95.29
List Price:  CA$136.14
You save:  CA$40.84
A$104.44
List Price:  A$149.21
You save:  A$44.76
S$94.20
List Price:  S$134.58
You save:  S$40.38
HK$546.10
List Price:  HK$780.18
You save:  HK$234.07
CHF 63.62
List Price:  CHF 90.89
You save:  CHF 27.27
NOK kr751.73
List Price:  NOK kr1,073.95
You save:  NOK kr322.21
DKK kr480.45
List Price:  DKK kr686.39
You save:  DKK kr205.93
NZ$114.09
List Price:  NZ$162.99
You save:  NZ$48.90
د.إ257.07
List Price:  د.إ367.26
You save:  د.إ110.19
৳8,195.22
List Price:  ৳11,707.96
You save:  ৳3,512.74
₹5,830.20
List Price:  ₹8,329.22
You save:  ₹2,499.01
RM328.07
List Price:  RM468.70
You save:  RM140.62
₦102,885.30
List Price:  ₦146,985.30
You save:  ₦44,100
₨19,393.48
List Price:  ₨27,706.17
You save:  ₨8,312.68
฿2,536.99
List Price:  ฿3,624.43
You save:  ฿1,087.43
₺2,256.71
List Price:  ₺3,224.01
You save:  ₺967.30
B$357.27
List Price:  B$510.40
You save:  B$153.13
R1,265.02
List Price:  R1,807.25
You save:  R542.23
Лв125.89
List Price:  Лв179.86
You save:  Лв53.96
₩94,793.75
List Price:  ₩135,425.45
You save:  ₩40,631.70
₪259.28
List Price:  ₪370.41
You save:  ₪111.13
₱4,039.50
List Price:  ₱5,770.97
You save:  ₱1,731.46
¥10,895.69
List Price:  ¥15,565.94
You save:  ¥4,670.25
MX$1,162.43
List Price:  MX$1,660.69
You save:  MX$498.25
QR253.91
List Price:  QR362.75
You save:  QR108.83
P948.27
List Price:  P1,354.73
You save:  P406.46
KSh9,168.69
List Price:  KSh13,098.69
You save:  KSh3,930
E£3,283.23
List Price:  E£4,690.53
You save:  E£1,407.30
ብር4,009.02
List Price:  ብር5,727.42
You save:  ብር1,718.40
Kz59,310.71
List Price:  Kz84,733.22
You save:  Kz25,422.51
CLP$62,605.89
List Price:  CLP$89,440.82
You save:  CLP$26,834.93
CN¥505.55
List Price:  CN¥722.24
You save:  CN¥216.69
RD$4,078.44
List Price:  RD$5,826.59
You save:  RD$1,748.15
DA9,404.82
List Price:  DA13,436.03
You save:  DA4,031.21
FJ$155.95
List Price:  FJ$222.79
You save:  FJ$66.84
Q543.74
List Price:  Q776.81
You save:  Q233.06
GY$14,641.89
List Price:  GY$20,917.88
You save:  GY$6,275.99
ISK kr9,678.91
List Price:  ISK kr13,827.61
You save:  ISK kr4,148.70
DH693.20
List Price:  DH990.33
You save:  DH297.13
L1,231.95
List Price:  L1,760
You save:  L528.05
ден3,957.99
List Price:  ден5,654.52
You save:  ден1,696.52
MOP$562.43
List Price:  MOP$803.51
You save:  MOP$241.07
N$1,273.79
List Price:  N$1,819.78
You save:  N$545.99
C$2,572.13
List Price:  C$3,674.63
You save:  C$1,102.50
रु9,330.17
List Price:  रु13,329.38
You save:  रु3,999.21
S/260
List Price:  S/371.45
You save:  S/111.44
K271.59
List Price:  K388.01
You save:  K116.41
SAR262.46
List Price:  SAR374.96
You save:  SAR112.50
ZK1,777.13
List Price:  ZK2,538.86
You save:  ZK761.73
L320.28
List Price:  L457.57
You save:  L137.28
Kč1,590.03
List Price:  Kč2,271.57
You save:  Kč681.54
Ft24,925.85
List Price:  Ft35,609.88
You save:  Ft10,684.03
SEK kr750.08
List Price:  SEK kr1,071.59
You save:  SEK kr321.50
ARS$62,063.63
List Price:  ARS$88,666.13
You save:  ARS$26,602.50
Bs483.56
List Price:  Bs690.83
You save:  Bs207.27
COP$266,463.69
List Price:  COP$380,678.73
You save:  COP$114,215.04
₡35,817.30
List Price:  ₡51,169.76
You save:  ₡15,352.46
L1,723.87
List Price:  L2,462.78
You save:  L738.91
₲524,369.02
List Price:  ₲749,130.70
You save:  ₲224,761.68
$U2,697.33
List Price:  $U3,853.49
You save:  $U1,156.16
zł274.39
List Price:  zł392.01
You save:  zł117.61
Already have an account? Log In

Transcript

Hello, in this video, I will show you how you can deploy your ADF application using side by side deployment. What is side by side deployment, you can deploy your ADF application in version, because in the production once you make some change in your ETF application and you want to read the blues application, again, you do want to interrupt or stop your ETF application because maybe some other user is still using you, if application. So instead of telling the customer or the user who used ADF application, stop using it to really rebuild a new version. No, you can keep them what using your application as as usual, and you can reliably redeploy another version of ADF application. And once a user look at it and look in again, it will automatically pick the new version. This is what we will do in this course.

So now I created a symbol If application was only one view object department name, then I created one beach. And I added title colon, if application version one ends the table of the department. So just let us run this application locally here just to have a look on on it. Okay, so this is a simple PDF application, I see here is the version application version one. And this is a table of the department you can you work with this application. So what I need to do now, I need to know how to change this title, I will need to make it if application version two and I need to change the color but before we do that, let us first deploy this application using side by side deployment.

So how we can do this let us first stop this application Okay. So, this application now is not exist in the WebLogic console, let us go to WebLogic console and bill to push a console deployment you will not find your application now is running. So, if you refresh this you will no not found it okay. So, now, I need to deploy this application inside my WebLogic using side by side deployment in versions. So, what can I do? This is a step that you will find this to exist in the course resource.

So, once you will lose the course resource you will find side by side deployment folder and you will find the system. So, what is the step there are two steps to deploy your ADF application. First step is you should run a city domain environment. So how how you where you will find citizens mean environment you will find it in Zeo domain filter. For example, you'll find the middleware user project domain your domain Ben, this is an example, but because of we are using embedded WebLogic So, you will find your domain inside the system folder right here, you will go to the C users your user app data roaming g developer and you will find the system folder which I talked about it before inside this system folder you will find your default domain. So, this is your domain location inside Ben, you will find here set a domain environment so first step is to run this city domain environment in the same city.

So I will copy this I will open the CMD then I will execute it domain environment CME. This is First step the second step is to deploy your ADF application as the first time you should run this command or this command okay so I will come here but before running this command let us update it with my hour. So what is this command will say it say admin you're in and you should send is your WebLogic IP and port. In our example here, we are using embedded which is this is a port and this is IB. So I set it here. Then you will set the you WebLogic user and the password which you use to log into the console.

After your miners deploy, theirs deploy their name and this name will be the application name which will appear here in the console. This name then you will go into the source of your ear file. So the first step we should generate the file before we deploy it. After that you will set the target What is your target? If you go to to the server here, you can find if you have multiple manage server if you create any managed server, so you should write your target. So our target is default server.

So I wrote here, default server server and the version I will start with 1.1 1.0. Okay, so this is the command which we should try. So first, we need To generate the IR file of the application. So, I will go to my EDF application now, I need to generate a file how I can do this first before you generate a file you have to set a data source which will be used. So, I will open the application module configuration then I will go to source and I will set the data source which s which is of course, this data source should be defined in your way WebLogic So, you will find here each RDS is already exist. So, I will say to shore This or this then I will go to to the application portability, deployment inside deployments are WebLogic.

I will on chicken auto generate and synchronize I will check this And this is my ear foil it is too long name so you can just reuse a name I just reduce it to the side by side deploying short cut is the dot ear. Okay, so this is your, your foil. So let us know generates a file, so I will just select this deploy, deploy side by side deployment to your file, you can select this first after that you would select deploy to your file. Because I already deployed before this video is why you will find this as exist but if you deploy for first time, you will find this after said you can select deploy to airfoil. Next and Finish. So it will deploy your application into your file.

So, this is the boss of say, your file. This is a file path. So, you copy it and you should voted here like this. Okay, so this is now our URL is ready sorry our command is ready so I will copy it or cut it okay and I will go here and I will pass it here okay. So here it is a quick review. This is a Java with visual Deployer in admin your L is 12700117101 user is WebLogic buzzword WebLogic want you to deploy with named side by side app source of that airfoil This is opposed to the ear fire with target will be to fault server and the version will be one and I will hit enter.

So now it will deploy your ADF application was version one will take couple of seconds should be. And now it is deploy completed on the default server. So it says go to the console, go to the deployment. Let's have a look if it does exist, you will find here side by side version one now is exist. So if you just refresh this Okay, you'll find your application is deployed successfully using side by side deployment. So now let us make a change in the application.

Okay, let us make it instead of version one. Let us make it version two Okay, and the changes of color to be maybe green. Okay, so I make some change in my application, I given similar examples that I need, we will change the color and they change the tickets to be to Okay, I use my ADF application as normal. So, but as if I am a user using the application and you are a developer made some change in your ADF application, and you want to read the blow it again without interrupting my access to the application. So now after you finish your change, okay, you will really blow up your file again. Okay, so you will generate a new IR file again and to read the blow your application, okay, you should use this command Using this command line, it will be the same like deploy, but instead of calling, there's deploy here You call this redeploy.

And the most important thing is that you have to give the same application name, don't make any changes application name should be the same application name pointing to your airfoil and everything would be okay but give another version. The first version is 1.0. I will make a version 1.1. So I will take this past copy okay, because everything is okay, the same application name which are Iran, Iran, this is your foil boss. And I will open here and you will run this application to redeploy this application newer version of the application in my default search. While it will redeploy I will go to the application and I will use My application and I will see if the redeploy will interrupt me or not.

So let us know redeploy. While it is redeploy, let us keep working with an application and see if Is there any interruption we'll have it or not. As you can see I can use application without any interruption. It sees a redeploy, still redeploy. Okay no interruption so far and it will not interrupt. Okay, sorry deploy is complete.

Okay. And I can still use the old version of the application without any interruption. If you back again to the console refresh, you will find here side by side app version another version is created and it is active and the old version is stopped. Running in citizen or running, but any user using this application he will keep using it as normal. As you can see, there is no interruption and they can use it if without any error message or anything. But okay when I will be able to move to the second version, if I look out and I look in again, I should automatically move to the second version.

So, what I will do now are you will close the browser and reopen it again and access application and I will see what is what what version I will access. So I will close the browser, open it again. Access application now and I will see what version it will point me. It should point me to the second version of your application. As you can see now, it is application version two. So you redeploy your ADF application without interruption In any, any user using the old version, but if the user logged out or left his application and look into the application again, it will automatically go into to the new version.

This is called side by side deployment. But there is something a you need to know about side by side deployment. There are some hints here, the maximum number of version you can deploy is only two versions. So now your if application, it will go to the console. Now your ADF application has to version okay. So it means you can redeploy our Mazar version with the same name in a was the same name in version 1.2.

For example, you can do it because the maximum number of one application is only two version. So if you read Try to read the blue is the same application. But in version 1.22, for example, you should get an error that says this is the maximum number is two. And this application already has two versions. So as you can see here, can't deploy or redeploy applications side by side app, version 1.2. Because the maximum number of application version two of applications side by side, and it exceeded, so we can't, you can't run more than two versions in the same application.

So once you deploy your a cyber application, just finished but in case if you want to redeploy another version, so before you redeploy not sufficient just to delete the old, the old one, so don't delete it, of once you deploy it, because maybe the user is still using it. So once you deploy your version, just keep watching version as it is exists till you reach to the stage that you want to read redeploy another version. So, what you will do you will deploy is that you you will delete the old version like this because you don't want it anymore. Okay, it is deployed it is now removed from this. In that case, you can start read deploying any other version like 1.2. So, this is called side by side deployment, this is a good feature, you should know about it.

And this is steps you can follow. And as I told you maximum version is only two version. And if you read the blows application B shows that you enter the same application name, the same application name, for redeploy, you have to enter the simulation name which already exists in the console. Okay, so the second version now, one more Do is redeployed successfully, you will find here 1.1 1.2 if you want to deploy 1.3, before deploy 1.3, remove 1.21 and so on. So, each application will have only two versions. This is a side by side deployment.

And this is a good feature you should know, especially in the production. So see you in activity

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.