This technique is used for deploying applications with versions. In first time you deploy application it will take version1. If you make some changes of that application and you want to re-deploy it again, side-by-side deployment manage you to re-deploy application without losing the connection to the application.
assume you deploy application with version1 and some of user connect to the application and you want to redeploy the application with version2, the connected user will still connecting to version1 but every user close the connection and reconnect to the application again it will connect to the version2.
After all user connect to version2 and no one connect to version1 the application of version1 status will become "Retire" at this moment you can delete version1.
- Side-by side deployment allow you to make only two versions. It means you should delete old version before you make new version.(for example: you deploy application with version1 and you redeploy it with version2, if you want to redeploy it with version3 you should first delete version1).
- Deploying application will done from command prompt not from console.
To deploy ADF Application:
1- Open cmd and go to the admin domain folder and set domain environment as shown
2-. write this (you should changes the bold words )
D:\Oracle\Middleware\user_projects\domains\modamoDomain>java weblogic.Deployer -adminurl t3://localhost:7001 -user weblogic -password weblogic1 -deploy -name myEar -source D:\Deploy\myEar.ear -targets MyServer -stage -appversion 1.0
localhost:7001 ---> admin domain address and admin domain port
weblogic ---> username of the admin weblogic server
weblogic1 ---> password of the admin weblogic server
myEar ---> name of the application which will display in the console.
D:\Deploy\ttEar.ear --> location of the ear file (you should write the full path of the location of the ear).
MyServer ---> Name of the server which you will deploy the application in. if you want to deploy the application in the cluster type the name of the cluster.
1.0 ---> version number of the application which will appear beside the application on the console.
Now you can open the console and you will find your application deployed.
To re-deploy the application:
1- Open cmd and go to the admin domain folder and set domain environment as in picture
2- write this (you should changes the bold words )
java weblogic.Deployer -adminurl t3://localhost:7001 -user weblogic -password weblogic1 -redeploy -name myEar -source D:\Deploy\myEar.ear -targets MyServer -appversion 1.1