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
€67.24
List Price:  €96.07
You save:  €28.82
£55.68
List Price:  £79.55
You save:  £23.86
CA$100.66
List Price:  CA$143.82
You save:  CA$43.15
A$111.82
List Price:  A$159.75
You save:  A$47.93
S$94.88
List Price:  S$135.55
You save:  S$40.66
HK$543.79
List Price:  HK$776.87
You save:  HK$233.08
CHF 62.67
List Price:  CHF 89.54
You save:  CHF 26.86
NOK kr792.28
List Price:  NOK kr1,131.89
You save:  NOK kr339.60
DKK kr501.55
List Price:  DKK kr716.53
You save:  DKK kr214.98
NZ$123.71
List Price:  NZ$176.74
You save:  NZ$53.02
د.إ257.07
List Price:  د.إ367.25
You save:  د.إ110.18
৳8,328.16
List Price:  ৳11,897.89
You save:  ৳3,569.72
₹5,958.01
List Price:  ₹8,511.81
You save:  ₹2,553.80
RM314.25
List Price:  RM448.95
You save:  RM134.70
₦108,236.03
List Price:  ₦154,629.53
You save:  ₦46,393.50
₨19,398.69
List Price:  ₨27,713.60
You save:  ₨8,314.91
฿2,394.21
List Price:  ฿3,420.45
You save:  ฿1,026.24
₺2,465.01
List Price:  ₺3,521.60
You save:  ₺1,056.58
B$426.13
List Price:  B$608.79
You save:  B$182.65
R1,290
List Price:  R1,842.93
You save:  R552.93
Лв131.30
List Price:  Лв187.58
You save:  Лв56.28
₩101,582.03
List Price:  ₩145,123.41
You save:  ₩43,541.37
₪254.54
List Price:  ₪363.65
You save:  ₪109.10
₱4,098.92
List Price:  ₱5,855.86
You save:  ₱1,756.93
¥10,967.38
List Price:  ¥15,668.35
You save:  ¥4,700.97
MX$1,406.50
List Price:  MX$2,009.38
You save:  MX$602.87
QR254.06
List Price:  QR362.96
You save:  QR108.89
P963.25
List Price:  P1,376.14
You save:  P412.88
KSh9,053.20
List Price:  KSh12,933.70
You save:  KSh3,880.50
E£3,568.78
List Price:  E£5,098.48
You save:  E£1,529.69
ብር8,687.63
List Price:  ብር12,411.43
You save:  ብር3,723.80
Kz64,250.82
List Price:  Kz91,790.82
You save:  Kz27,540
CLP$69,297.02
List Price:  CLP$99,000
You save:  CLP$29,702.97
CN¥510.87
List Price:  CN¥729.84
You save:  CN¥218.97
RD$4,243.89
List Price:  RD$6,062.96
You save:  RD$1,819.07
DA9,435.69
List Price:  DA13,480.14
You save:  DA4,044.44
FJ$162.05
List Price:  FJ$231.51
You save:  FJ$69.46
Q536.99
List Price:  Q767.16
You save:  Q230.17
GY$14,580.66
List Price:  GY$20,830.41
You save:  GY$6,249.74
ISK kr9,757.30
List Price:  ISK kr13,939.60
You save:  ISK kr4,182.30
DH701.41
List Price:  DH1,002.06
You save:  DH300.64
L1,291.33
List Price:  L1,844.84
You save:  L553.50
ден4,135.36
List Price:  ден5,907.91
You save:  ден1,772.55
MOP$557.92
List Price:  MOP$797.07
You save:  MOP$239.14
N$1,283.07
List Price:  N$1,833.03
You save:  N$549.96
C$2,564.57
List Price:  C$3,663.83
You save:  C$1,099.26
रु9,479.94
List Price:  रु13,543.35
You save:  रु4,063.41
S/259.51
List Price:  S/370.75
You save:  S/111.23
K282.61
List Price:  K403.75
You save:  K121.13
SAR262.99
List Price:  SAR375.71
You save:  SAR112.72
ZK1,928.73
List Price:  ZK2,755.44
You save:  ZK826.71
L334.62
List Price:  L478.06
You save:  L143.43
Kč1,690.23
List Price:  Kč2,414.72
You save:  Kč724.49
Ft27,882.67
List Price:  Ft39,834.10
You save:  Ft11,951.42
SEK kr772.23
List Price:  SEK kr1,103.23
You save:  SEK kr331
ARS$71,547.27
List Price:  ARS$102,214.77
You save:  ARS$30,667.50
Bs481.59
List Price:  Bs688.02
You save:  Bs206.42
COP$305,890.51
List Price:  COP$437,005.17
You save:  COP$131,114.66
₡35,162.35
List Price:  ₡50,234.08
You save:  ₡15,071.73
L1,769.11
List Price:  L2,527.41
You save:  L758.30
₲543,432.39
List Price:  ₲776,365.26
You save:  ₲232,932.87
$U3,131.93
List Price:  $U4,474.38
You save:  $U1,342.44
zł286.59
List Price:  zł409.44
You save:  zł122.84
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.