This content has been marked as final. Show 3 replies
To my knowledge to change the deployment order, the application must first be deployed, for example by using the WLST deploy command (http://docs.oracle.com/cd/E24329_01/web.1211/e24490/reference.htm#i1024284) after which you can obtain an instance of the AppDeploymentMBean (http://docs.oracle.com/cd/E12839_01/apirefs.1111/e13951/core/index.html) and change the DeploymentOrder attribute (http://docs.oracle.com/cd/E24329_01/web.1211/e24443/managing.htm#DEPGD306).
The following shows an example (with shared libraries)
print 'DEPLOY LIBRARIES'; deploy('jsf-ri', path=jsfrilibrary, targets='Cluster', libraryModule='true'); deploy('trinidad', path=trinidadlibrary, targets='Cluster', libraryModule='true'); deploy('coherence-web-spi', path=coherencelibrary, targets='Cluster', libraryModule='true'); print 'START EDIT MODE'; edit(); startEdit(); print 'CHANGE DEPLOYMENT ORDER OF DEPLOYED LIBRARIES'; libraries = cmo.getLibraries(); for library in libraries: library.setDeploymentOrder(1); print 'SAVE AND ACTIVATE CHANGES'; save(); activate(block='true');
Deployment order can also be changed from admin console for a deployed application. Follow below steps,
1. Lock & Edit
2. Go to domain > deployments > <app>
3. Go to Overview tab of the selected deployment where you will see the deployment order as 100 set as default.
4. Give a value as required.
5. Save and Activate change.