Monday, May 19, 2014

Manage SOA Composites with WLST


Here are some useful WLST commands for managing SOA composites.

Use the scripts located at:
(UNIX) MIDDLEWARE_HOME/ORACLE_SOA1/common/bin/wlst.sh

Retiring a Composite
wls:/soa_domain/serverConfig> sca_retireComposite(“nysolutionsltd.com”,”8400″,”weblogic”,”weblogicpassword”,”CompositeName”,”1.01″,partition=”SOA_Partition”)

host = localhost
port = 8400
user = weblogic
partition = SOA_Partition
compositeName = CompositeName
revision = 0.01
label = None
compositeDN =SOA_Partition/CompositeName!0.01
Connecting to: service:jmx:t3://localhost:8400/jndi/weblogic.management.mbeanservers.runtime
Composite (SOA_Partition/CompositeName!0.01) is successfully retired.

Stop/Shutdown a composite

wls:/soa_domain/serverConfig> sca_stopComposite(“localhost”,”8400″,”weblogic”,”mypassword”,”MYCompositeName”,”0.01″,partition=”SOA_Partition”)

host = localhost
port = 8400
user = weblogic
partition = SOA_Partition
compositeName = MYCompositeName
revision = 0.01
label = None
compositeDN =SOA_Partition/MYCompositeName!0.01

Connecting to: service:jmx:t3://localhost:8400/jndi/weblogic.management.mbeanservers.runtime
Composite (SOA_Partition/MYCompositeName!0.01) is successfully stopped.
wls:/soa_domain/serverConfig>

Starting a composite

wls:/soa_domain/serverConfig> sca_startComposite(“localhost”,”8400″,”weblogic”,”mypassword”,”MYCompositeName”,”0.01″,partition=”SOA_Partition”)

host = localhost
port = 8400
user = weblogic
partition = SOA_Partition
compositeName = MYCompositeName
revision = 0.01
label = None
compositeDN =SOA_Partition/MYCompositeName!0.01

Connecting to: service:jmx:t3://localhost:8400/jndi/weblogic.management.mbeanservers.runtime
Composite (SOA_Partition/MYCompositeName!0.01) is successfully started..

Activating a Composite

wls:/soa_domain/serverConfig> sca_activateComposite(“localhost”,”8400″,”weblogic”,”mypassword”,”MYCompositeName”,”0.01″,partition=”SOA_Partition”)

host = localhost
port = 8400
user = weblogic
partition = SOA_Partition
compositeName = MYCompositeName
revision = 0.01
label = None
compositeDN =SOA_Partition/MYCompositeName!0.01

Connecting to: service:jmx:t3://localhost:8400/jndi/weblogic.management.mbeanservers.runtime
Composite (SOA_Partition/MYCompositeName!0.01) is successfully activated.

List all Composites

wls:/soa_domain/serverConfig> sca_listDeployedComposites(‘localhost’,’8400′,’weblogic’,'mypassword’)

host = localhost
port = 8400
user = weblogic

Connecting to: service:jmx:t3://localhost:8400/jndi/weblogic.management.mbeanservers.runtime

Following 2 composites are currently deployed to the platform:

1. MYCompositeNameABCS[1.04], partition=SOA_Partition, mode=retired, state=off, isDefault=false, deployedTime=2014-04-25T15:51:19.116+01:00

2. MYCompositeNameABCS[1.05], partition=SOA_Partition, mode=active, state=on, isDefault=true, deployedTime=2014-04-21T09:51:34.818+01:00

No comments:

Post a Comment