WebLogic Changing Deployment Order

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

WebLogic Changing Deployment Order

Post by cah »

/apps/weblogic/10.0MP1/user_projects/domains/portal
This can be done in Offline Mode:

Step1). run . ./setWLSEnv.sh

Step2). java weblogic.WLST

Step3). wls:/offline> readDomain(r'C:\bea103\user_projects\domains\7001_Domain')
OR
wls:/offline> readDomain('C:/bea103/user_projects/domains/7001_Domain')

Step4). cd ('AppDeployment')

Step5). ls()

wls:/offline/7001_Domain/AppDeployment> ls()
drw- PolicyTestEAR
drw- WebAppEar
drw- SecondWebAppEar

Step6). cd ('SecondWebAppEar')

Step7). cmo.setDeploymentOrder(111)

wls:/offline/7001_Domain/AppDeployment/SecondWebAppEar> set('DeploymentOrder',111)
wls:/offline/7001_Domain/AppDeployment/SecondWebAppEar> ls()
-rw- AltDescriptorPath..........................null
-rw- AltWlsDescriptorPath..........................null
-rw- ApplicationIdentifier..........................null
-rw- ApplicationName..........................null
-rw- CompatibilityName..........................null
-rw- DeploymentOrder ..........................111
-rw- DeploymentPrincipalName..........................null
-rw- InstallDir..........................null
-rw- ModuleType..........................ear
-rw- Name..........................SecondWebAppEar
-rw- Notes..........................null
-rw- PlanDir..........................null
-rw- PlanPath..........................null
-rw- SecurityDdModel..........................DDOnly
-rw- SourcePath..........................C:\JavaTest\Diagnostics\SecondWebAppEar
-rw- StagingMode..........................stage
-rw- Target..........................AdminServer
-rw- ValidateDdSecurityData..........................false
-rw- VersionIdentifier..........................null
Online should be very similar. Just use a

connect()
edit()
startEdit()

cd and cmo commands like above - might need an s on cd('AppDeployments')

activate()
CAH, The Great
Post Reply