Topics
The following example script demonstrates how a Partition Administrator configures users such as Operators, Deployers, and Monitors, for a new partition.
Note:
To view long URLs, use the scroll bar located beneath the section.
----------------------------------------------------------------------
Demonstrate a partition admin configuring a partition
----------------------------------------------------------------------
----------------------------------------------------------------------
Create a deployer, operator and monitor for the new partition
----------------------------------------------------------------------
curl -v \
--user Partition1Admin:Partition1Admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
userName: 'Partition1Deployer',
password: 'Partition1Deployer123',
description: 'Partition1 deployer'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverConfig/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultAuthenticator/createUser
HTTP/1.1 200 OK
Response Body:
{}
curl -v \
--user Partition1Admin:Partition1Admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
groupName: 'Deployers',
memberUserOrGroupName: 'Partition1Deployer'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverConfig/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultAuthenticator/addMemberToGroup
HTTP/1.1 200 OK
Response Body:
{}
curl -v \
--user Partition1Admin:Partition1Admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
userName: 'Partition1Operator',
password: 'Partition1Operator123',
description: 'Partition1 operator'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverConfig/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultAuthenticator/createUser
HTTP/1.1 200 OK
Response Body:
{}
curl -v \
--user Partition1Admin:Partition1Admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
groupName: 'Operators',
memberUserOrGroupName: 'Partition1Operator'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverConfig/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultAuthenticator/addMemberToGroup
HTTP/1.1 200 OK
Response Body:
{}
curl -v \
--user Partition1Admin:Partition1Admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
userName: 'Partition1Monitor',
password: 'Partition1Monitor123',
description: 'Partition1 monitor'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverConfig/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultAuthenticator/createUser
HTTP/1.1 200 OK
Response Body:
{}
curl -v \
--user Partition1Admin:Partition1Admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
groupName: 'Monitors',
memberUserOrGroupName: 'Partition1Monitor'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/serverConfig/securityConfiguration/realms/Partition1Realm/authenticationProviders/DefaultAuthenticator/addMemberToGroup
HTTP/1.1 200 OK
Response Body:
{}
The following example script demonstrates how a Deployer creates a partition-scoped data source and a JMS system resource.
Note:
To view long URLs, use the scroll bar located beneath the section.
----------------------------------------------------------------------
Demonstrate a partition deployer configuring system resources
----------------------------------------------------------------------
----------------------------------------------------------------------
View the default values for a new partition-scoped JDBC system resource
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResourceCreateForm?links=none
HTTP/1.1 200 OK
Response Body:
{
"notes": null,
"moduleType": null,
"deploymentPrincipalName": null,
"compatibilityName": null,
"deploymentOrder": 100,
"tags": null,
"targets": [],
"name": null,
"descriptorFileName": null
}
----------------------------------------------------------------------
Start editing
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/changeManager/startEdit
HTTP/1.1 200 OK
Response Body:
{}
----------------------------------------------------------------------
Create a new partition-scoped JDBC system resource and set its name
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'Partition1JDBCDataSource1',
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources?saveChanges=false
HTTP/1.1 201 Created
Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1
Response Body:
{}
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'Partition1JDBCDataSource1'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource
HTTP/1.1 200 OK
Response Body:
{}
----------------------------------------------------------------------
Configure the JDBC system resource's JNDI name
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
JNDINames: [ 'Partition1JDBCDataSource1' ]
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDataSourceParams
HTTP/1.1 200 OK
Response Body:
{}
----------------------------------------------------------------------
Configure the JDBC system resource's driver info
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
driverName: 'org.apache.derby.jdbc.ClientXADataSource',
url: 'jdbc:derby://localhost:1527/demo'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams
HTTP/1.1 200 OK
Response Body:
{}
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'portNumber',
value: '1527'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties
HTTP/1.1 201 Created
Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties/portNumber
Response Body:
{}
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'databaseName',
value: 'demo;create=true'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties
HTTP/1.1 201 Created
Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties/databaseName
Response Body:
{}
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'serverName',
value: 'localhost'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties
HTTP/1.1 201 Created
Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties/serverName
Response Body:
{}
----------------------------------------------------------------------
Activate the changes
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/changeManager/activate
HTTP/1.1 200 OK
Response Body:
{}
----------------------------------------------------------------------
View the new JDBC system resource
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1?links=none
HTTP/1.1 200 OK
Response Body:
{
"identity": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"JDBCSystemResources",
"Partition1JDBCDataSource1"
],
"notes": null,
"moduleType": null,
"deploymentPrincipalName": null,
"descriptorFileName": "partitions\/Partition1\/jdbc\/Partition1JDBCDataSource1-3274-jdbc.xml",
"name": "Partition1JDBCDataSource1",
"compatibilityName": null,
"id": 0,
"deploymentOrder": 100,
"dynamicallyCreated": false,
"type": "JDBCSystemResource",
"sourcePath": ".\/config\/partitions\/Partition1\/jdbc\/Partition1JDBCDataSource1-3274-jdbc.xml",
"tags": [],
"resource": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"JDBCSystemResources",
"Partition1JDBCDataSource1",
"JDBCResource"
],
"targets": []
}
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource?links=none
HTTP/1.1 200 OK
Response Body:
{
"identity": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"JDBCSystemResources",
"Partition1JDBCDataSource1",
"JDBCResource"
],
"datasourceType": null,
"name": "Partition1JDBCDataSource1",
"id": 0,
"version": null
}
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDataSourceParams?links=none
HTTP/1.1 200 OK
Response Body:
{
"identity": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"JDBCSystemResources",
"Partition1JDBCDataSource1",
"JDBCResource",
"JDBCDataSourceParams"
],
"connectionPoolFailoverCallbackHandler": null,
"globalTransactionsProtocol": "OnePhaseCommit",
"algorithmType": "Failover",
"scope": "Global",
"failoverRequestIfBusy": false,
"proxySwitchingCallback": null,
"JNDINames": ["Partition1JDBCDataSource1"],
"proxySwitchingProperties": null,
"dataSourceList": null,
"keepConnAfterGlobalTx": false
}
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams?links=none
HTTP/1.1 200 OK
Response Body:
{
"identity": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"JDBCSystemResources",
"Partition1JDBCDataSource1",
"JDBCResource",
"JDBCDriverParams"
],
"password": null,
"driverName": "org.apache.derby.jdbc.ClientXADataSource",
"usePasswordIndirection": false,
"url": "jdbc:derby:\/\/localhost:1527\/demo",
"useXaDataSourceInterface": true
}
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JDBCSystemResources/Partition1JDBCDataSource1/JDBCResource/JDBCDriverParams/properties/properties?links=none
HTTP/1.1 200 OK
Response Body:
{"items": [
{
"identity": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"JDBCSystemResources",
"Partition1JDBCDataSource1",
"JDBCResource",
"JDBCDriverParams",
"properties",
"properties",
"portNumber"
],
"encryptedValue": null,
"name": "portNumber",
"sysPropValue": null,
"value": "1527"
},
{
"identity": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"JDBCSystemResources",
"Partition1JDBCDataSource1",
"JDBCResource",
"JDBCDriverParams",
"properties",
"properties",
"databaseName"
],
"encryptedValue": null,
"name": "databaseName",
"sysPropValue": null,
"value": "demo;create=true"
},
{
"identity": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"JDBCSystemResources",
"Partition1JDBCDataSource1",
"JDBCResource",
"JDBCDriverParams",
"properties",
"properties",
"serverName"
],
"encryptedValue": null,
"name": "serverName",
"sysPropValue": null,
"value": "localhost"
}
]}
----------------------------------------------------------------------
Search for all of the JDBC data sources runtimes
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
partitionRuntimes: {
links: [], fields: [ 'name' ],
children: {
JDBCPartitionRuntime: {
links: [], fields: [ 'name' ],
children: {
JDBCDataSourceRuntimeMBeans : {
links: [], fields: [ 'name', 'state' ]
}
}
}
}
}
}
}
}
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/search
HTTP/1.1 200 OK
Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JDBCPartitionRuntime": {
"name": "Partition1",
"JDBCDataSourceRuntimeMBeans": {"items": [{
"state": "Running",
"name": "Partition1JDBCDataSource1"
}]}
}
}]}
},
{
"name": "AdminServer",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JDBCPartitionRuntime": null
}]}
},
{
"name": "Cluster1Server2",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JDBCPartitionRuntime": {
"name": "Partition1",
"JDBCDataSourceRuntimeMBeans": {"items": [{
"state": "Running",
"name": "Partition1JDBCDataSource1"
}]}
}
}]}
}
]}}
----------------------------------------------------------------------
Start editing
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/changeManager/startEdit
HTTP/1.1 200 OK
Response Body:
{}
----------------------------------------------------------------------
View the default values for a new partition-scoped JMS file store
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/fileStoreCreateForm?links=none
HTTP/1.1 200 OK
Response Body:
{
"notes": null,
"fileLockingEnabled": true,
"distributionPolicy": "Distributed",
"partialClusterStabilityDelaySeconds": 240,
"deploymentOrder": 1000,
"directory": null,
"initialBootDelaySeconds": 60,
"ioBufferSize": -1,
"minWindowBufferSize": -1,
"failbackDelaySeconds": -1,
"cacheDirectory": null,
"numberOfRestartAttempts": 6,
"initialSize": 0,
"logicalName": null,
"maxFileSize": 1342177280,
"synchronousWritePolicy": "Direct-Write",
"blockSize": -1,
"tags": null,
"maxWindowBufferSize": -1,
"migrationPolicy": "Off",
"secondsBetweenRestarts": 30,
"targets": [],
"name": null
}
----------------------------------------------------------------------
Create a new partition-scoped file store
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'Partition1FileStore1'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/fileStores
HTTP/1.1 201 Created
Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/fileStores/Partition1FileStore1
Response Body:
{}
----------------------------------------------------------------------
View the default values for a new partition-scoped JMS server
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSServerCreateForm?links=none
HTTP/1.1 200 OK
Response Body:
{
"messagesThresholdHigh": -1,
"hostingTemporaryDestinations": true,
"temporaryTemplateName": null,
"notes": null,
"maximumMessageSize": 2147483647,
"allowsPersistentDowngrade": false,
"storeMessageCompressionEnabled": false,
"deploymentOrder": 1000,
"pagingMessageCompressionEnabled": false,
"messageBufferSize": -1,
"expirationScanInterval": 30,
"bytesThresholdLow": -1,
"messagesThresholdLow": -1,
"blockingSendPolicy": "FIFO",
"pagingBlockSize": -1,
"insertionPausedAtStartup": "default",
"pagingMaxWindowBufferSize": -1,
"bytesThresholdHigh": -1,
"pagingMaxFileSize": 1342177280,
"productionPausedAtStartup": "default",
"pagingFileLockingEnabled": true,
"tags": null,
"bytesMaximum": -1,
"temporaryTemplateResource": null,
"messageCompressionOptions": "GZIP_DEFAULT_COMPRESSION",
"pagingMinWindowBufferSize": -1,
"pagingIoBufferSize": -1,
"messagesMaximum": -1,
"consumptionPausedAtStartup": "default",
"pagingDirectory": null,
"storeEnabled": true,
"persistentStore": null,
"targets": [],
"name": null
}
----------------------------------------------------------------------
Create a new partition-scoped JMS server and hook it up to the file store
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'Partition1JMSServer1',
messagesMaximum: 10000,
bytesMaximum: 10000000,
persistentStore: [ 'partitions', 'Partition1', 'resourceGroups', 'Partition1ResourceGroup', 'fileStores', 'Partition1FileStore1' ]
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSServers
HTTP/1.1 201 Created
Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSServers/Partition1JMSServer1
Response Body:
{}
----------------------------------------------------------------------
View the default values for a new partition-scoped JMS system resource
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResourceCreateForm?links=none
HTTP/1.1 200 OK
Response Body:
{
"notes": null,
"moduleType": null,
"deploymentPrincipalName": null,
"compatibilityName": null,
"deploymentOrder": 100,
"tags": null,
"targets": [],
"name": null,
"descriptorFileName": null
}
----------------------------------------------------------------------
Create a new partition-scoped JMS system resource
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'Partition1JMSSystemResource1',
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources
HTTP/1.1 201 Created
Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1
Response Body:
{}
----------------------------------------------------------------------
View the default values for a new JMS subdeployment
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/subDeploymentCreateForm?links=none
HTTP/1.1 200 OK
Response Body:
{
"notes": null,
"moduleType": null,
"compatibilityName": null,
"untargeted": false,
"tags": null,
"targets": [],
"name": null
}
----------------------------------------------------------------------
Create a new JMS subdeployment and hook it up to the JMS server
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'Partition1JMSSubDeployment1',
targets: [ { identity: [ 'partitions', 'Partition1', 'resourceGroups', 'Partition1ResourceGroup','JMSServers', 'Partition1JMSServer1' ] } ]
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/subDeployments
HTTP/1.1 201 Created
Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/subDeployments/Partition1JMSSubDeployment1
Response Body:
{}
----------------------------------------------------------------------
View the default values for a new JMS connection factory
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/JMSResource/connectionFactoryCreateForm?links=none
HTTP/1.1 200 OK
Response Body:
{
"notes": null,
"JNDIName": null,
"defaultTargetingEnabled": false,
"localJNDIName": null,
"name": null
}
----------------------------------------------------------------------
Create a new JMS connection factory and hook it up to the JMS subdeployment
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'Partition1ConnectionFactory1',
subDeploymentName: 'Partition1JMSSubDeployment1'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/JMSResource/connectionFactories
HTTP/1.1 201 Created
Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/JMSResource/connectionFactories/Partition1ConnectionFactory1
Response Body:
{}
----------------------------------------------------------------------
View the default values for a new JMS distributed queue
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/JMSResource/uniformDistributedQueueCreateForm?links=none
HTTP/1.1 200 OK
Response Body:
{
"notes": null,
"JNDIName": null,
"unitOfOrderRouting": "Hash",
"resetDeliveryCountOnForward": true,
"defaultUnitOfOrder": false,
"defaultTargetingEnabled": false,
"incompleteWorkExpirationTime": -1,
"loadBalancingPolicy": "Round-Robin",
"forwardDelay": -1,
"JMSCreateDestinationIdentifier": null,
"localJNDIName": null,
"template": null,
"quota": null,
"name": null
}
----------------------------------------------------------------------
Create a new JMS uniform distributed queue and hook it up to the JMS subdeployment
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'Partition1UniformDistributedQueue1',
subDeploymentName: 'Partition1JMSSubDeployment1'
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/JMSResource/uniformDistributedQueues
HTTP/1.1 201 Created
Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSSystemResources/Partition1JMSSystemResource1/JMSResource/uniformDistributedQueues/Partition1UniformDistributedQueue1
Response Body:
{}
----------------------------------------------------------------------
Activate the changes
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/changeManager/activate
HTTP/1.1 200 OK
Response Body:
{}
----------------------------------------------------------------------
View the file stores
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/fileStores?links=none
HTTP/1.1 200 OK
Response Body:
{"items": [{
"identity": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"fileStores",
"Partition1FileStore1"
],
"notes": null,
"fileLockingEnabled": true,
"distributionPolicy": "Distributed",
"partialClusterStabilityDelaySeconds": 240,
"deploymentOrder": 1000,
"type": "FileStore",
"directory": null,
"initialBootDelaySeconds": 60,
"ioBufferSize": -1,
"minWindowBufferSize": -1,
"failbackDelaySeconds": -1,
"cacheDirectory": null,
"id": 0,
"dynamicallyCreated": false,
"XAResourceName": null,
"numberOfRestartAttempts": 6,
"initialSize": 0,
"logicalName": null,
"maxFileSize": 1342177280,
"synchronousWritePolicy": "Direct-Write",
"blockSize": -1,
"tags": [],
"maxWindowBufferSize": -1,
"name": "Partition1FileStore1",
"migrationPolicy": "Off",
"secondsBetweenRestarts": 30,
"restartInPlace": false,
"targets": []
}]}
----------------------------------------------------------------------
View the JMS servers
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/JMSServers?links=none
HTTP/1.1 200 OK
Response Body:
{"items": [{
"identity": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"JMSServers",
"Partition1JMSServer1"
],
"messagesThresholdHigh": -1,
"hostingTemporaryDestinations": true,
"temporaryTemplateName": null,
"notes": null,
"maximumMessageSize": 2147483647,
"allowsPersistentDowngrade": false,
"storeMessageCompressionEnabled": false,
"deploymentOrder": 1000,
"type": "JMSServer",
"pagingMessageCompressionEnabled": false,
"messageBufferSize": -1,
"expirationScanInterval": 30,
"bytesThresholdLow": -1,
"messagesThresholdLow": -1,
"blockingSendPolicy": "FIFO",
"id": 0,
"dynamicallyCreated": false,
"pagingBlockSize": -1,
"insertionPausedAtStartup": "default",
"pagingMaxWindowBufferSize": -1,
"bytesThresholdHigh": -1,
"pagingMaxFileSize": 1342177280,
"productionPausedAtStartup": "default",
"pagingFileLockingEnabled": true,
"tags": [],
"bytesMaximum": 10000000,
"temporaryTemplateResource": null,
"messageCompressionOptions": "GZIP_DEFAULT_COMPRESSION",
"pagingMinWindowBufferSize": -1,
"pagingIoBufferSize": -1,
"messagesMaximum": 10000,
"name": "Partition1JMSServer1",
"consumptionPausedAtStartup": "default",
"pagingDirectory": null,
"storeEnabled": true,
"persistentStore": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"fileStores",
"Partition1FileStore1"
],
"targets": []
}]}
----------------------------------------------------------------------
View the JMS system resources and their children
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
partitions: {
links: [], fields: [ 'name' ],
children: {
resourceGroups: {
links: [], fields: [ 'name' ],
children: {
JMSSystemResources: {
links: [],
children: {
JMSResource: {
links: [], fields: [],
children: {
connectionFactories: {
links: []
},
distributedQueues: {
links: []
},
}
},
subDeployments: {
links: []
}
}
}
}
}
}
}
}
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/search
HTTP/1.1 200 OK
Response Body:
{"partitions": {"items": [{
"name": "Partition1",
"resourceGroups": {"items": [{
"name": "Partition1ResourceGroup",
"JMSSystemResources": {"items": [{
"identity": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"JMSSystemResources",
"Partition1JMSSystemResource1"
],
"notes": null,
"moduleType": null,
"deploymentPrincipalName": null,
"descriptorFileName": "partitions\/Partition1\/jms\/partition1jmssystemresource1-jms.xml",
"name": "Partition1JMSSystemResource1",
"compatibilityName": null,
"id": 0,
"deploymentOrder": 100,
"dynamicallyCreated": false,
"type": "JMSSystemResource",
"sourcePath": ".\/config\/partitions\/Partition1\/jms\/partition1jmssystemresource1-jms.xml",
"tags": [],
"resource": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"JMSSystemResources",
"Partition1JMSSystemResource1",
"JMSResource"
],
"targets": [],
"subDeployments": {"items": [{
"identity": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"JMSSystemResources",
"Partition1JMSSystemResource1",
"subDeployments",
"Partition1JMSSubDeployment1"
],
"notes": null,
"moduleType": null,
"name": "Partition1JMSSubDeployment1",
"compatibilityName": null,
"untargeted": false,
"id": 0,
"dynamicallyCreated": false,
"type": "SubDeployment",
"tags": [],
"targets": [{"identity": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"JMSServers",
"Partition1JMSServer1"
]}]
}]},
"JMSResource": {"connectionFactories": {"items": [{
"identity": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"JMSSystemResources",
"Partition1JMSSystemResource1",
"JMSResource",
"connectionFactories",
"Partition1ConnectionFactory1"
],
"notes": null,
"JNDIName": null,
"defaultTargetingEnabled": false,
"name": "Partition1ConnectionFactory1",
"subDeploymentName": "Partition1JMSSubDeployment1",
"id": 0,
"localJNDIName": null
}]}}
}]}
}]}
}]}}
----------------------------------------------------------------------
Search for all of the JMS related runtimes
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
partitionRuntimes: {
links: [], fields: [ 'name' ],
children: {
JMSRuntime: {
links: [], fields: [ 'name', 'healthState' ],
children: {
JMSServers: {
links: [], fields: [ 'name', 'healthState' ],
children: {
destinations: {
links: [], fields: [ 'name', 'state' ],
}
}
}
}
}
}
}
}
}
}
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/search
HTTP/1.1 200 OK
Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JMSRuntime": {
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Cluster1Server1.jms",
"JMSServers": {"items": [{
"healthState": {
"state": "ok",
"subsystemName": "JMSServer.Partition1JMSServer1@Cluster1Server1$Partition1",
"partitionName": null,
"symptoms": []
},
"name": "Partition1JMSServer1@Cluster1Server1",
"destinations": {"items": [{
"state": "started",
"name": "Partition1JMSSystemResource1!Partition1JMSServer1@Cluster1Server1@Partition1UniformDistributedQueue1"
}]}
}]}
}
}]}
},
{
"name": "AdminServer",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JMSRuntime": {
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "AdminServer.jms",
"JMSServers": {"items": []}
}
}]}
},
{
"name": "Cluster1Server2",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JMSRuntime": {
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Cluster1Server2.jms",
"JMSServers": {"items": [{
"healthState": {
"state": "ok",
"subsystemName": "JMSServer.Partition1JMSServer1@Cluster1Server2$Partition1",
"partitionName": null,
"symptoms": []
},
"name": "Partition1JMSServer1@Cluster1Server2",
"destinations": {"items": [{
"state": "started",
"name": "Partition1JMSSystemResource1!Partition1JMSServer1@Cluster1Server2@Partition1UniformDistributedQueue1"
}]}
}]}
}
}]}
}
]}}
The following example script demonstrates how a Deployer deploys partition-scoped applications.
Note:
To view long URLs, use the scroll bar located beneath the section.
----------------------------------------------------------------------
Demonstrate a partition deployer deploying apps
----------------------------------------------------------------------
----------------------------------------------------------------------
Asynchronously deploy a partition-scoped server-side application to the cluster
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
name: 'basicapp',
sourcePath: '/deployments/BasicApp/app/BasicApp.ear',
planPath: '/deployments/BasicApp/plan/Plan.xml'
}" \
-H "Prefer:respond-async" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/appDeployments
HTTP/1.1 202 Accepted
Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/deploymentProgressObjects/basicapp
Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/partitions\/Partition1\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/deploymentManager\/deploymentProgressObjects\/basicapp"
}],
"identity": [
"domainPartitionRuntimes",
"Partition1",
"deploymentManager",
"deploymentProgressObjects",
"basicapp"
],
"rootExceptions": [],
"deploymentMessages": [],
"name": "basicapp",
"operationType": 3,
"startTimeAsLong": 1470764268624,
"state": "STATE_RUNNING",
"id": "weblogic.deploy.configChangeTask.4",
"type": "DeploymentProgressObject",
"targets": ["Partition1VirtualTarget"],
"applicationName": "basicapp",
"failedTargets": [],
"progress": "processing",
"completed": false,
"intervalToPoll": 1000,
"startTime": "2016-08-09T13:37:48.624-04"
}
----------------------------------------------------------------------
Get status for job domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/deploymentProgressObjects/basicapp
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/deploymentProgressObjects/basicapp?links=none
HTTP/1.1 200 OK
Response Body:
{
"identity": [
"domainPartitionRuntimes",
"Partition1",
"deploymentManager",
"deploymentProgressObjects",
"basicapp"
],
"rootExceptions": [],
"deploymentMessages": [],
"name": "basicapp",
"operationType": 3,
"startTimeAsLong": 1470764268624,
"state": "STATE_RUNNING",
"id": "weblogic.deploy.configChangeTask.4",
"type": "DeploymentProgressObject",
"targets": ["Partition1VirtualTarget"],
"applicationName": "basicapp",
"failedTargets": [],
"progress": "processing",
"completed": false,
"intervalToPoll": 1000,
"startTime": "2016-08-09T13:37:48.624-04"
}
----------------------------------------------------------------------
Get status for job domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/deploymentProgressObjects/basicapp
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/deploymentProgressObjects/basicapp?links=none
HTTP/1.1 200 OK
Response Body:
{
"identity": [
"domainPartitionRuntimes",
"Partition1",
"deploymentManager",
"deploymentProgressObjects",
"basicapp"
],
"rootExceptions": [],
"endTimeAsLong": 1470764270155,
"deploymentMessages": [
"[Deployer:149191]Operation \"deploy\" on application \"basicapp\" is initializing on \"Cluster1Server2\".",
"[Deployer:149191]Operation \"deploy\" on application \"basicapp\" is initializing on \"Cluster1Server1\".",
"[Deployer:149194]Operation \"deploy\" on application \"basicapp\" has succeeded on \"Cluster1Server1\".",
"[Deployer:149194]Operation \"deploy\" on application \"basicapp\" has succeeded on \"Cluster1Server2\"."
],
"name": "basicapp",
"operationType": 3,
"startTimeAsLong": 1470764268624,
"state": "STATE_COMPLETED",
"id": "weblogic.deploy.configChangeTask.4",
"type": "DeploymentProgressObject",
"targets": ["Partition1VirtualTarget"],
"applicationName": "basicapp",
"failedTargets": [],
"progress": "success",
"completed": true,
"intervalToPoll": 1000,
"startTime": "2016-08-09T13:37:48.624-04",
"endTime": "2016-08-09T13:37:50.155-04"
}
----------------------------------------------------------------------
Synchronously upload a partition-scoped application from the client and deploy it to the cluster
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:multipart/form-data \
-F "model={
name: 'fairShare'
}" \
-F "sourcePath=@/deployments/fairShare.war" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/appDeployments
HTTP/1.1 100 Continue HTTP/1.1 201 Created
Location: http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/appDeployments/fairShare
Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/partitions\/Partition1\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/deploymentManager\/deploymentProgressObjects\/fairShare"
}],
"identity": [
"domainPartitionRuntimes",
"Partition1",
"deploymentManager",
"deploymentProgressObjects",
"fairShare"
],
"rootExceptions": [],
"endTimeAsLong": 1470764288344,
"deploymentMessages": [
"[Deployer:149191]Operation \"deploy\" on application \"fairShare\" is initializing on \"Cluster1Server2\".",
"[Deployer:149191]Operation \"deploy\" on application \"fairShare\" is initializing on \"Cluster1Server1\".",
"[Deployer:149194]Operation \"deploy\" on application \"fairShare\" has succeeded on \"Cluster1Server1\".",
"[Deployer:149194]Operation \"deploy\" on application \"fairShare\" has succeeded on \"Cluster1Server2\"."
],
"name": "fairShare",
"operationType": 3,
"startTimeAsLong": 1470764287635,
"state": "STATE_COMPLETED",
"id": "weblogic.deploy.configChangeTask.5",
"type": "DeploymentProgressObject",
"targets": ["Partition1VirtualTarget"],
"applicationName": "fairShare",
"failedTargets": [],
"progress": "success",
"completed": true,
"intervalToPoll": 1000,
"startTime": "2016-08-09T13:38:07.635-04",
"endTime": "2016-08-09T13:38:08.344-04"
}
----------------------------------------------------------------------
View the new applications' configurations
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/appDeployments/fairShare?links=none
HTTP/1.1 200 OK
Response Body:
{
"identity": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"appDeployments",
"fairShare"
],
"stagingMode": null,
"absoluteSourcePath": "\/domains\/mydomain\/partitions\/Partition1\/system\/servers\/AdminServer\/upload\/fairShare\/app\/fairShare.war",
"notes": null,
"absoluteAltDescriptorPath": null,
"deploymentOrder": 100,
"type": "AppDeployment",
"installDir": null,
"id": 0,
"altDescriptorDir": null,
"dynamicallyCreated": false,
"sourcePath": "partitions\/Partition1\/system\/servers\/AdminServer\/upload\/fairShare\/app\/fairShare.war",
"applicationName": "fairShare",
"absoluteAltDescriptorDir": null,
"moduleType": "war",
"planStagingMode": null,
"cacheInAppDirectory": false,
"absoluteInstallDir": null,
"compatibilityName": null,
"absolutePlanPath": "\/domains\/mydomain\/partitions\/Partition1\/system\/servers\/AdminServer\/upload\/fairShare\/plan\/Plan.xml",
"untargeted": false,
"planDir": "partitions\/Partition1\/system\/servers\/AdminServer\/upload\/fairShare\/plan",
"validateDDSecurityData": false,
"applicationIdentifier": "fairShare",
"tags": [],
"planPath": "Plan.xml",
"versionIdentifier": null,
"deploymentPrincipalName": null,
"absolutePlanDir": "\/domains\/mydomain\/partitions\/Partition1\/system\/servers\/AdminServer\/upload\/fairShare\/plan",
"name": "fairShare",
"parallelDeployModules": false,
"securityDDModel": "DDOnly",
"targets": []
}
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/edit/partitions/Partition1/resourceGroups/Partition1ResourceGroup/appDeployments/basicapp?links=none
HTTP/1.1 200 OK
Response Body:
{
"identity": [
"partitions",
"Partition1",
"resourceGroups",
"Partition1ResourceGroup",
"appDeployments",
"basicapp"
],
"stagingMode": null,
"absoluteSourcePath": "\/deployments\/BasicApp\/app\/BasicApp.ear",
"notes": null,
"absoluteAltDescriptorPath": null,
"deploymentOrder": 100,
"type": "AppDeployment",
"installDir": null,
"id": 0,
"altDescriptorDir": null,
"dynamicallyCreated": false,
"sourcePath": "\/deployments\/BasicApp\/app\/BasicApp.ear",
"applicationName": "basicapp",
"absoluteAltDescriptorDir": null,
"moduleType": "ear",
"planStagingMode": null,
"cacheInAppDirectory": false,
"absoluteInstallDir": null,
"compatibilityName": null,
"absolutePlanPath": "\/deployments\/BasicApp\/plan\/Plan.xml",
"untargeted": false,
"planDir": null,
"validateDDSecurityData": false,
"applicationIdentifier": "basicapp",
"tags": [],
"planPath": "\/deployments\/BasicApp\/plan\/Plan.xml",
"versionIdentifier": null,
"deploymentPrincipalName": null,
"absolutePlanDir": null,
"name": "basicapp",
"parallelDeployModules": false,
"securityDDModel": "DDOnly",
"targets": []
}
----------------------------------------------------------------------
View the new applications' appDeploymentRuntimes
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/appDeploymentRuntimes/fairShare?links=none
HTTP/1.1 200 OK
Response Body:
{
"identity": [
"domainPartitionRuntimes",
"Partition1",
"deploymentManager",
"appDeploymentRuntimes",
"fairShare"
],
"applicationVersion": null,
"partitionName": "Partition1",
"name": "fairShare",
"type": "AppDeploymentRuntime",
"applicationName": "fairShare",
"modules": ["fairShare"]
}
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/appDeploymentRuntimes/basicapp?links=none
HTTP/1.1 200 OK
Response Body:
{
"identity": [
"domainPartitionRuntimes",
"Partition1",
"deploymentManager",
"appDeploymentRuntimes",
"basicapp"
],
"applicationVersion": null,
"partitionName": "Partition1",
"name": "basicapp",
"type": "AppDeploymentRuntime",
"applicationName": "basicapp",
"modules": [
"BasicEJB.jar",
"BasicAuth"
]
}
----------------------------------------------------------------------
Search for all of the new applications' applicationRuntimes
----------------------------------------------------------------------
curl -v \
--user Partition1Deployer:Partition1Deployer123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
partitionRuntimes: {
links: [], fields: [ 'name' ],
children: {
applicationRuntimes: {
links: [],
name: [ 'fairShare', 'basicapp' ]
}
}
}
}
}
}
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/search
HTTP/1.1 200 OK
Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"applicationRuntimes": {"items": [
{
"identity": [
"partitionRuntimes",
"Partition1",
"applicationRuntimes",
"fairShare"
],
"applicationVersion": null,
"internal": false,
"partitionName": "Partition1",
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "fairShare",
"type": "ApplicationRuntime",
"activeVersionState": 2,
"applicationName": "fairShare"
},
{
"identity": [
"partitionRuntimes",
"Partition1",
"applicationRuntimes",
"basicapp"
],
"applicationVersion": null,
"internal": false,
"partitionName": "Partition1",
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "basicapp",
"type": "ApplicationRuntime",
"activeVersionState": 2,
"applicationName": "basicapp"
}
]}
}]}
},
{
"name": "AdminServer",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"applicationRuntimes": {"items": []}
}]}
},
{
"name": "Cluster1Server2",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"applicationRuntimes": {"items": [
{
"identity": [
"partitionRuntimes",
"Partition1",
"applicationRuntimes",
"fairShare"
],
"applicationVersion": null,
"internal": false,
"partitionName": "Partition1",
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "fairShare",
"type": "ApplicationRuntime",
"activeVersionState": 2,
"applicationName": "fairShare"
},
{
"identity": [
"partitionRuntimes",
"Partition1",
"applicationRuntimes",
"basicapp"
],
"applicationVersion": null,
"internal": false,
"partitionName": "Partition1",
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "basicapp",
"type": "ApplicationRuntime",
"activeVersionState": 2,
"applicationName": "basicapp"
}
]}
}]}
}
]}}
The following example script demonstrates how a Monitor monitors the servers, partitions, applications, JMS, and data sources in a partition, including monitoring the resource manager. For more information about resource management, see "Configuring Resource Consumption Management" in Using WebLogic Server Multitenant.
Note:
To view long URLs, use the scroll bar located beneath the section.
----------------------------------------------------------------------
Demonstrate a partition monitor monitoring the partition
----------------------------------------------------------------------
----------------------------------------------------------------------
Monitor the servers this partition runs on
----------------------------------------------------------------------
curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/serverRuntimes?links=none
HTTP/1.1 200 OK
Response Body:
{"items": [
{
"identity": [],
"stateVal": 2,
"type": "ServerRuntime",
"weblogicVersion": "WebLogic Server 12.2.1.2.0 Mon Aug 8 15:06:42 PDT 2016 1806341",
"adminServerHost": "localhost",
"adminServerListenPortSecure": false,
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"restartRequired": false,
"name": "Cluster1Server1",
"state": "RUNNING",
"defaultURL": "t3:\/\/localhost:7101",
"adminServerListenPort": 7001
},
{
"identity": [],
"stateVal": 2,
"type": "ServerRuntime",
"weblogicVersion": "WebLogic Server 12.2.1.2.0 Mon Aug 8 15:06:42 PDT 2016 1806341",
"adminServerHost": "localhost",
"adminServerListenPortSecure": false,
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"restartRequired": false,
"name": "AdminServer",
"state": "RUNNING",
"defaultURL": "t3:\/\/localhost:7001",
"adminServerListenPort": 7001
},
{
"identity": [],
"stateVal": 2,
"type": "ServerRuntime",
"weblogicVersion": "WebLogic Server 12.2.1.2.0 Mon Aug 8 15:06:42 PDT 2016 1806341",
"adminServerHost": "localhost",
"adminServerListenPortSecure": false,
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"restartRequired": false,
"name": "Cluster1Server2",
"state": "RUNNING",
"defaultURL": "t3:\/\/localhost:7102",
"adminServerListenPort": 7001
}
]}
----------------------------------------------------------------------
Monitor the partitions
----------------------------------------------------------------------
curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
partitionRuntimes: {
links: [], fields: [ 'name', 'state', 'overallHealthState', 'subsystemHealthStates' ]
}
}
}
}
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/search
HTTP/1.1 200 OK
Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"partitionRuntimes": {"items": [{
"subsystemHealthStates": [
{
"state": "ok",
"subsystemName": "jms-internal-notran-adp-Partition1VirtualTarget_jms-internal-notran-adp(Adapter)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "bea_wls_internal-Partition1VirtualTarget$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDINoTX(Adapter Outbound Pool)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "Cluster1Server1.jms",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "Cluster1Server1.saf",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-xa-adp-Partition1VirtualTarget$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "basicapp$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "wls-management-services-Partition1VirtualTarget$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-xa-adp-Partition1VirtualTarget_jms-internal-xa-adp(Adapter)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-notran-adp-Partition1VirtualTarget$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "fairShare$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "PersistentStore._WLS_EJBTIMER_Cluster1Server1",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "JMSServer.Partition1JMSServer1@Cluster1Server1$Partition1",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDIXA(Adapter Outbound Pool)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "PersistentStore.Partition1FileStore1@Cluster1Server1$Partition1",
"partitionName": "Partition1",
"symptoms": []
}
],
"overallHealthState": {
"state": "ok",
"subsystemName": "PartitionRuntime.Partition1",
"partitionName": "Partition1",
"symptoms": []
},
"name": "Partition1",
"state": "RUNNING"
}]}
},
{
"name": "AdminServer",
"partitionRuntimes": {"items": [{
"subsystemHealthStates": [
{
"state": "ok",
"subsystemName": "PersistentStore._WLS_EJBTIMER_AdminServer",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "wls-management-services-Partition1-adminVT$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDINoTX(Adapter Outbound Pool)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-notran-adp-Partition1-adminVT_jms-internal-notran-adp(Adapter)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-notran-adp-Partition1-adminVT$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "bea_wls_internal-Partition1-adminVT$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "AdminServer.saf",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "AdminServer.jms",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-xa-adp-Partition1-adminVT$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-xa-adp-Partition1-adminVT_jms-internal-xa-adp(Adapter)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDIXA(Adapter Outbound Pool)",
"partitionName": "Partition1",
"symptoms": []
}
],
"overallHealthState": {
"state": "ok",
"subsystemName": "PartitionRuntime.Partition1",
"partitionName": "Partition1",
"symptoms": []
},
"name": "Partition1",
"state": "RUNNING"
}]}
},
{
"name": "Cluster1Server2",
"partitionRuntimes": {"items": [{
"subsystemHealthStates": [
{
"state": "ok",
"subsystemName": "jms-internal-notran-adp-Partition1VirtualTarget_jms-internal-notran-adp(Adapter)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "Cluster1Server2.jms",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "JMSServer.Partition1JMSServer1@Cluster1Server2$Partition1",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "Cluster1Server2.saf",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "bea_wls_internal-Partition1VirtualTarget$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDINoTX(Adapter Outbound Pool)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-xa-adp-Partition1VirtualTarget$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "basicapp$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "wls-management-services-Partition1VirtualTarget$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "PersistentStore.Partition1FileStore1@Cluster1Server2$Partition1",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-xa-adp-Partition1VirtualTarget_jms-internal-xa-adp(Adapter)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "jms-internal-notran-adp-Partition1VirtualTarget$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "fairShare$Partition1(Application)",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "PersistentStore._WLS_EJBTIMER_Cluster1Server2",
"partitionName": "Partition1",
"symptoms": []
},
{
"state": "ok",
"subsystemName": "eis\/jms\/internal\/WLSConnectionFactoryJNDIXA(Adapter Outbound Pool)",
"partitionName": "Partition1",
"symptoms": []
}
],
"overallHealthState": {
"state": "ok",
"subsystemName": "PartitionRuntime.Partition1",
"partitionName": "Partition1",
"symptoms": []
},
"name": "Partition1",
"state": "RUNNING"
}]}
}
]}}
----------------------------------------------------------------------
Monitor the JDBC system resources
----------------------------------------------------------------------
curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
JDBCServiceRuntime: {
links: [], fields: [ 'name' ],
children: {
JDBCDataSourceRuntimeMBeans : { links: [], excludeFields: [ 'properties' ] }
}
},
partitionRuntimes: {
links: [], fields: [ 'name' ],
children: {
JDBCPartitionRuntime: {
links: [], fields: [ 'name' ],
children: {
JDBCDataSourceRuntimeMBeans : { links: [], excludeFields: [ 'properties' ] }
}
}
}
}
}
}
}
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/search
HTTP/1.1 200 OK
Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JDBCPartitionRuntime": {
"name": "Partition1",
"JDBCDataSourceRuntimeMBeans": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"JDBCPartitionRuntime",
"JDBCDataSourceRuntimeMBeans",
"Partition1JDBCDataSource1"
],
"connectionsTotalCount": 1,
"waitingForConnectionSuccessTotal": 0,
"highestNumUnavailable": 1,
"reserveRequestCount": 1,
"type": "JDBCDataSourceRuntime",
"waitingForConnectionTotal": 0,
"enabled": true,
"currCapacityHighCount": 1,
"prepStmtCacheHitCount": 0,
"prepStmtCacheMissCount": 0,
"databaseProductName": "Apache Derby",
"state": "Running",
"moduleId": "Partition1JDBCDataSource1",
"prepStmtCacheAddCount": 0,
"failuresToReconnectCount": 0,
"databaseProductVersion": "10.11.1.1 - (1616546)",
"leakedConnectionCount": 0,
"waitingForConnectionFailureTotal": 0,
"activeConnectionsHighCount": 1,
"connectionDelayTime": 6,
"waitingForConnectionHighCount": 0,
"waitSecondsHighCount": 0,
"versionJDBCDriver": "org.apache.derby.jdbc.ClientXADataSource",
"failedReserveRequestCount": 0,
"prepStmtCacheDeleteCount": 0,
"numAvailable": 1,
"deploymentState": 2,
"prepStmtCacheAccessCount": 0,
"driverVersion": "10.11.1.1 - (1616546)",
"prepStmtCacheCurrentSize": 0,
"name": "Partition1JDBCDataSource1",
"activeConnectionsCurrentCount": 0,
"currCapacity": 1,
"driverName": "Apache Derby Network Client JDBC Driver",
"activeConnectionsAverageCount": 0,
"numUnavailable": 0,
"waitingForConnectionCurrentCount": 0,
"highestNumAvailable": 1,
"lastTask": null
}]}
}
}]}
},
{
"name": "AdminServer",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JDBCPartitionRuntime": null
}]}
},
{
"name": "Cluster1Server2",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JDBCPartitionRuntime": {
"name": "Partition1",
"JDBCDataSourceRuntimeMBeans": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"JDBCPartitionRuntime",
"JDBCDataSourceRuntimeMBeans",
"Partition1JDBCDataSource1"
],
"connectionsTotalCount": 1,
"waitingForConnectionSuccessTotal": 0,
"highestNumUnavailable": 1,
"reserveRequestCount": 2,
"type": "JDBCDataSourceRuntime",
"waitingForConnectionTotal": 0,
"enabled": true,
"currCapacityHighCount": 1,
"prepStmtCacheHitCount": 0,
"prepStmtCacheMissCount": 0,
"databaseProductName": "Apache Derby",
"state": "Running",
"moduleId": "Partition1JDBCDataSource1",
"prepStmtCacheAddCount": 0,
"failuresToReconnectCount": 0,
"databaseProductVersion": "10.11.1.1 - (1616546)",
"leakedConnectionCount": 0,
"waitingForConnectionFailureTotal": 0,
"activeConnectionsHighCount": 1,
"connectionDelayTime": 5,
"waitingForConnectionHighCount": 0,
"waitSecondsHighCount": 0,
"versionJDBCDriver": "org.apache.derby.jdbc.ClientXADataSource",
"failedReserveRequestCount": 0,
"prepStmtCacheDeleteCount": 0,
"numAvailable": 1,
"deploymentState": 2,
"prepStmtCacheAccessCount": 0,
"driverVersion": "10.11.1.1 - (1616546)",
"prepStmtCacheCurrentSize": 0,
"name": "Partition1JDBCDataSource1",
"activeConnectionsCurrentCount": 0,
"currCapacity": 1,
"driverName": "Apache Derby Network Client JDBC Driver",
"activeConnectionsAverageCount": 0,
"numUnavailable": 0,
"waitingForConnectionCurrentCount": 0,
"highestNumAvailable": 1,
"lastTask": null
}]}
}
}]}
}
]}}
----------------------------------------------------------------------
Test a partition level JDBC data source
----------------------------------------------------------------------
curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/serverRuntimes/Cluster1Server2/partitionRuntimes/Partition1/JDBCPartitionRuntime/JDBCDataSourceRuntimeMBeans/Partition1JDBCDataSource1/testPool
HTTP/1.1 200 OK
Response Body:
{"return": null}
----------------------------------------------------------------------
Monitor the JMS system resources
----------------------------------------------------------------------
curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
partitionRuntimes: {
links: [], fields: [ 'name' ],
children: {
JMSRuntime: {
links: [],
children: {
JMSServers: {
links: [],
children: {
destinations: {
links: [],
}
}
}
}
}
}
}
}
}
}
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/search
HTTP/1.1 200 OK
Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JMSRuntime": {
"identity": [
"partitionRuntimes",
"Partition1",
"JMSRuntime"
],
"JMSServersHighCount": 1,
"connectionsHighCount": 0,
"connectionsTotalCount": 0,
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Cluster1Server1.jms",
"JMSServersCurrentCount": 1,
"type": "JMSRuntime",
"JMSServersTotalCount": 1,
"connectionsCurrentCount": 0,
"JMSServers": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"JMSServers",
"Partition1JMSServer1@Cluster1Server1"
],
"messagesReceivedCount": 0,
"bytesThresholdTime": 0,
"bytesHighCount": 0,
"insertionPausedState": "Insertion-Enabled",
"destinationsCurrentCount": 1,
"pagingAllocatedIoBufferBytes": 0,
"type": "JMSServerRuntime",
"messagesPagedInTotalCount": 0,
"consumptionPaused": false,
"bytesPagedInTotalCount": 0,
"pagingPhysicalWriteCount": 0,
"pendingTransactions": null,
"bytesPagedOutTotalCount": 0,
"consumptionPausedState": "Consumption-Enabled",
"sessionPoolsHighCount": 0,
"bytesReceivedCount": 0,
"messagesHighCount": 0,
"productionPausedState": "Production-Enabled",
"pagingAllocatedWindowBufferBytes": 0,
"destinationsTotalCount": 1,
"sessionPoolsTotalCount": 0,
"messagesThresholdTime": 0,
"bytesCurrentCount": 0,
"transactions": null,
"messagesPagedOutTotalCount": 0,
"messagesCurrentCount": 0,
"destinationsHighCount": 1,
"insertionPaused": false,
"healthState": {
"state": "ok",
"subsystemName": "JMSServer.Partition1JMSServer1@Cluster1Server1$Partition1",
"partitionName": null,
"symptoms": []
},
"messagesPageableCurrentCount": 0,
"sessionPoolsCurrentCount": 0,
"name": "Partition1JMSServer1@Cluster1Server1",
"bytesPendingCount": 0,
"productionPaused": false,
"bytesPageableCurrentCount": 0,
"messagesPendingCount": 0,
"destinations": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"JMSServers",
"Partition1JMSServer1@Cluster1Server1",
"destinations",
"Partition1JMSSystemResource1!Partition1JMSServer1@Cluster1Server1@Partition1UniformDistributedQueue1"
],
"messagesReceivedCount": 0,
"bytesThresholdTime": 0,
"bytesHighCount": 0,
"insertionPausedState": "Insertion-Enabled",
"type": "JMSDestinationRuntime",
"consumptionPaused": false,
"messagesDeletedCurrentCount": 0,
"destinationType": "Queue",
"consumptionPausedState": "Consumption-Enabled",
"state": "started",
"bytesReceivedCount": 0,
"messagesHighCount": 0,
"productionPausedState": "Production-Enabled",
"consumersTotalCount": 0,
"consumersHighCount": 0,
"messagesThresholdTime": 0,
"bytesCurrentCount": 0,
"messagesMovedCurrentCount": 0,
"messagesCurrentCount": 0,
"insertionPaused": false,
"name": "Partition1JMSSystemResource1!Partition1JMSServer1@Cluster1Server1@Partition1UniformDistributedQueue1",
"bytesPendingCount": 0,
"productionPaused": false,
"messagesPendingCount": 0,
"consumersCurrentCount": 0
}]}
}]}
}
}]}
},
{
"name": "AdminServer",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JMSRuntime": {
"identity": [
"partitionRuntimes",
"Partition1",
"JMSRuntime"
],
"JMSServersHighCount": 0,
"connectionsHighCount": 0,
"connectionsTotalCount": 0,
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "AdminServer.jms",
"JMSServersCurrentCount": 0,
"type": "JMSRuntime",
"JMSServersTotalCount": 0,
"connectionsCurrentCount": 0,
"JMSServers": {"items": []}
}
}]}
},
{
"name": "Cluster1Server2",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"JMSRuntime": {
"identity": [
"partitionRuntimes",
"Partition1",
"JMSRuntime"
],
"JMSServersHighCount": 1,
"connectionsHighCount": 0,
"connectionsTotalCount": 0,
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Cluster1Server2.jms",
"JMSServersCurrentCount": 1,
"type": "JMSRuntime",
"JMSServersTotalCount": 1,
"connectionsCurrentCount": 0,
"JMSServers": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"JMSServers",
"Partition1JMSServer1@Cluster1Server2"
],
"messagesReceivedCount": 0,
"bytesThresholdTime": 0,
"bytesHighCount": 0,
"insertionPausedState": "Insertion-Enabled",
"destinationsCurrentCount": 1,
"pagingAllocatedIoBufferBytes": 0,
"type": "JMSServerRuntime",
"messagesPagedInTotalCount": 0,
"consumptionPaused": false,
"bytesPagedInTotalCount": 0,
"pagingPhysicalWriteCount": 0,
"pendingTransactions": null,
"bytesPagedOutTotalCount": 0,
"consumptionPausedState": "Consumption-Enabled",
"sessionPoolsHighCount": 0,
"bytesReceivedCount": 0,
"messagesHighCount": 0,
"productionPausedState": "Production-Enabled",
"pagingAllocatedWindowBufferBytes": 0,
"destinationsTotalCount": 1,
"sessionPoolsTotalCount": 0,
"messagesThresholdTime": 0,
"bytesCurrentCount": 0,
"transactions": null,
"messagesPagedOutTotalCount": 0,
"messagesCurrentCount": 0,
"destinationsHighCount": 1,
"insertionPaused": false,
"healthState": {
"state": "ok",
"subsystemName": "JMSServer.Partition1JMSServer1@Cluster1Server2$Partition1",
"partitionName": null,
"symptoms": []
},
"messagesPageableCurrentCount": 0,
"sessionPoolsCurrentCount": 0,
"name": "Partition1JMSServer1@Cluster1Server2",
"bytesPendingCount": 0,
"productionPaused": false,
"bytesPageableCurrentCount": 0,
"messagesPendingCount": 0,
"destinations": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"JMSServers",
"Partition1JMSServer1@Cluster1Server2",
"destinations",
"Partition1JMSSystemResource1!Partition1JMSServer1@Cluster1Server2@Partition1UniformDistributedQueue1"
],
"messagesReceivedCount": 0,
"bytesThresholdTime": 0,
"bytesHighCount": 0,
"insertionPausedState": "Insertion-Enabled",
"type": "JMSDestinationRuntime",
"consumptionPaused": false,
"messagesDeletedCurrentCount": 0,
"destinationType": "Queue",
"consumptionPausedState": "Consumption-Enabled",
"state": "started",
"bytesReceivedCount": 0,
"messagesHighCount": 0,
"productionPausedState": "Production-Enabled",
"consumersTotalCount": 0,
"consumersHighCount": 0,
"messagesThresholdTime": 0,
"bytesCurrentCount": 0,
"messagesMovedCurrentCount": 0,
"messagesCurrentCount": 0,
"insertionPaused": false,
"name": "Partition1JMSSystemResource1!Partition1JMSServer1@Cluster1Server2@Partition1UniformDistributedQueue1",
"bytesPendingCount": 0,
"productionPaused": false,
"messagesPendingCount": 0,
"consumersCurrentCount": 0
}]}
}]}
}
}]}
}
]}}
----------------------------------------------------------------------
Monitor the applications
----------------------------------------------------------------------
curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
partitionRuntimes: {
links: [], fields: [ 'name' ],
children: {
applicationRuntimes: {
links: [], fields: [ 'name', 'healthState', 'overallHealthState' ]
}
}
}
}
}
}
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/search
HTTP/1.1 200 OK
Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"applicationRuntimes": {"items": [
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-notran-adp-Partition1VirtualTarget"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "basicapp"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "bea_wls_internal-Partition1VirtualTarget"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "wls-management-services-Partition1VirtualTarget"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Partition1JDBCDataSource1"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-xa-adp-Partition1VirtualTarget"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "fairShare"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Partition1JMSSystemResource1"
}
]}
}]}
},
{
"name": "AdminServer",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"applicationRuntimes": {"items": [
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-notran-adp-Partition1-adminVT"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "wls-management-services-Partition1-adminVT"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "bea_wls_internal-Partition1-adminVT"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-xa-adp-Partition1-adminVT"
}
]}
}]}
},
{
"name": "Cluster1Server2",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"applicationRuntimes": {"items": [
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Partition1JDBCDataSource1"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "wls-management-services-Partition1VirtualTarget"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "basicapp"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-notran-adp-Partition1VirtualTarget"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "jms-internal-xa-adp-Partition1VirtualTarget"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "Partition1JMSSystemResource1"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "fairShare"
},
{
"overallHealthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"healthState": {
"state": "ok",
"subsystemName": null,
"partitionName": null,
"symptoms": []
},
"name": "bea_wls_internal-Partition1VirtualTarget"
}
]}
}]}
}
]}}
----------------------------------------------------------------------
Monitor the applications' servlets
----------------------------------------------------------------------
curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
partitionRuntimes: {
links: [], fields: [ 'name' ],
children: {
applicationRuntimes: {
links: [], fields: [ 'name' ],
name: [ 'fairShare', 'basicapp' ],
children: {
componentRuntimes: {
links: [], fields: [ 'name', 'type' ],
children: {
servlets: {
links: [],
fields: [
'name',
'executionTimeHigh',
'executionTimeLow',
'executionTimeAverage',
'invocationTotalCount'
]
}
}
}
}
}
}
}
}
}
}
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/search
HTTP/1.1 200 OK
Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"applicationRuntimes": {"items": [
{
"name": "fairShare",
"componentRuntimes": {"items": [{
"type": "WebAppComponentRuntime",
"name": "Partition1VirtualTarget_\/partition1\/fairShare",
"servlets": {"items": [
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "JspServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "FileServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "SimpleFastServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "SimpleSlowServlet",
"executionTimeAverage": 0
}
]}
}]}
},
{
"name": "basicapp",
"componentRuntimes": {"items": [
{
"type": "WebAppComponentRuntime",
"name": "Partition1VirtualTarget_\/partition1\/BasicAuth",
"servlets": {"items": [
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "JspServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet3",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet2",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet1",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "FileServlet",
"executionTimeAverage": 0
}
]}
},
{
"name": "BasicEJB.jar",
"type": "EJBComponentRuntime"
}
]}
}
]}
}]}
},
{
"name": "AdminServer",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"applicationRuntimes": {"items": []}
}]}
},
{
"name": "Cluster1Server2",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"applicationRuntimes": {"items": [
{
"name": "fairShare",
"componentRuntimes": {"items": [{
"type": "WebAppComponentRuntime",
"name": "Partition1VirtualTarget_\/partition1\/fairShare",
"servlets": {"items": [
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "JspServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "FileServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "SimpleFastServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "SimpleSlowServlet",
"executionTimeAverage": 0
}
]}
}]}
},
{
"name": "basicapp",
"componentRuntimes": {"items": [
{
"type": "WebAppComponentRuntime",
"name": "Partition1VirtualTarget_\/partition1\/BasicAuth",
"servlets": {"items": [
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "JspServlet",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet3",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet2",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "Servlet1",
"executionTimeAverage": 0
},
{
"executionTimeHigh": 0,
"invocationTotalCount": 0,
"executionTimeLow": 0,
"name": "FileServlet",
"executionTimeAverage": 0
}
]}
},
{
"name": "BasicEJB.jar",
"type": "EJBComponentRuntime"
}
]}
}
]}
}]}
}
]}}
----------------------------------------------------------------------
Monitor the resource manager
----------------------------------------------------------------------
curl -v \
--user Partition1Monitor:Partition1Monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
links: [], fields: [],
children: {
serverRuntimes: {
links: [], fields: [ 'name' ],
children: {
partitionRuntimes: {
links: [], fields: [ 'name' ],
children: {
resourceManagerRuntime: {
links: [],
children: {
resourceRuntimes: {
links: [],
children: {
triggerRuntimes: { links: [] },
fairShareConstraintRuntime: { links: [] }
}
}
}
}
}
}
}
}
}
}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/search
HTTP/1.1 200 OK
Response Body:
{"serverRuntimes": {"items": [
{
"name": "Cluster1Server1",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"resourceManagerRuntime": {
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime"
],
"name": "Partition1ResourceManager",
"type": "ResourceManagerRuntime",
"resourceRuntimes": {"items": [
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"FileOpen"
],
"usage": 2,
"name": "FileOpen",
"type": "ResourceRuntime",
"resourceType": "file-open",
"triggerRuntimes": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"FileOpen",
"triggerRuntimes",
"NotifyTrigger"
],
"initiated": false,
"recourseActionEventsHistory": [],
"name": "NotifyTrigger",
"lastTimeExecuted": null,
"type": "TriggerRuntime",
"activated": false
}]},
"fairShareConstraintRuntime": null
},
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"CpuUtilization"
],
"usage": 1,
"name": "CpuUtilization",
"type": "ResourceRuntime",
"resourceType": "cpu-utilization",
"triggerRuntimes": {"items": [
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"CpuUtilization",
"triggerRuntimes",
"NotifyTrigger"
],
"initiated": false,
"recourseActionEventsHistory": [],
"name": "NotifyTrigger",
"lastTimeExecuted": null,
"type": "TriggerRuntime",
"activated": false
},
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"CpuUtilization",
"triggerRuntimes",
"SlowTrigger"
],
"initiated": false,
"recourseActionEventsHistory": [],
"name": "SlowTrigger",
"lastTimeExecuted": null,
"type": "TriggerRuntime",
"activated": false
}
]},
"fairShareConstraintRuntime": null
},
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"HeapRetained"
],
"usage": 8,
"name": "HeapRetained",
"type": "ResourceRuntime",
"resourceType": "heap-retained",
"triggerRuntimes": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"HeapRetained",
"triggerRuntimes",
"NotifyTrigger"
],
"initiated": false,
"recourseActionEventsHistory": [],
"name": "NotifyTrigger",
"lastTimeExecuted": null,
"type": "TriggerRuntime",
"activated": false
}]},
"fairShareConstraintRuntime": null
}
]}
}
}]}
},
{
"name": "AdminServer",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"resourceManagerRuntime": {
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime"
],
"name": "Partition1ResourceManager",
"type": "ResourceManagerRuntime",
"resourceRuntimes": {"items": [
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"FileOpen"
],
"usage": 5,
"name": "FileOpen",
"type": "ResourceRuntime",
"resourceType": "file-open",
"triggerRuntimes": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"FileOpen",
"triggerRuntimes",
"NotifyTrigger"
],
"initiated": false,
"recourseActionEventsHistory": [
{
"initiated": true,
"usage": 5,
"executionDate": "2016-08-09T13:37:41.056-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2016-08-09T13:37:41.059-04",
"action": "notify",
"active": true,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 3,
"executionDate": "2016-08-09T13:37:41.157-04",
"action": "notify",
"active": false,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 3,
"executionDate": "2016-08-09T13:37:41.158-04",
"action": "notify",
"active": false,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 5,
"executionDate": "2016-08-09T13:37:46.479-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2016-08-09T13:37:46.480-04",
"action": "notify",
"active": true,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 3,
"executionDate": "2016-08-09T13:37:46.565-04",
"action": "notify",
"active": false,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 3,
"executionDate": "2016-08-09T13:37:46.566-04",
"action": "notify",
"active": false,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 5,
"executionDate": "2016-08-09T13:37:48.627-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2016-08-09T13:37:48.628-04",
"action": "notify",
"active": true,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 3,
"executionDate": "2016-08-09T13:37:48.704-04",
"action": "notify",
"active": false,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 3,
"executionDate": "2016-08-09T13:37:48.706-04",
"action": "notify",
"active": false,
"actionSuccessful": true
},
{
"initiated": true,
"usage": 5,
"executionDate": "2016-08-09T13:38:07.279-04",
"action": "notify",
"active": true,
"actionSuccessful": false
},
{
"initiated": false,
"usage": 5,
"executionDate": "2016-08-09T13:38:07.279-04",
"action": "notify",
"active": true,
"actionSuccessful": true
}
],
"name": "NotifyTrigger",
"lastTimeExecuted": "2016-08-09T13:38:07.279-04",
"type": "TriggerRuntime",
"activated": true
}]},
"fairShareConstraintRuntime": null
},
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"CpuUtilization"
],
"usage": 5,
"name": "CpuUtilization",
"type": "ResourceRuntime",
"resourceType": "cpu-utilization",
"triggerRuntimes": {"items": [
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"CpuUtilization",
"triggerRuntimes",
"NotifyTrigger"
],
"initiated": false,
"recourseActionEventsHistory": [],
"name": "NotifyTrigger",
"lastTimeExecuted": null,
"type": "TriggerRuntime",
"activated": false
},
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"CpuUtilization",
"triggerRuntimes",
"SlowTrigger"
],
"initiated": false,
"recourseActionEventsHistory": [],
"name": "SlowTrigger",
"lastTimeExecuted": null,
"type": "TriggerRuntime",
"activated": false
}
]},
"fairShareConstraintRuntime": null
},
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"HeapRetained"
],
"usage": 12,
"name": "HeapRetained",
"type": "ResourceRuntime",
"resourceType": "heap-retained",
"triggerRuntimes": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"HeapRetained",
"triggerRuntimes",
"NotifyTrigger"
],
"initiated": false,
"recourseActionEventsHistory": [],
"name": "NotifyTrigger",
"lastTimeExecuted": null,
"type": "TriggerRuntime",
"activated": false
}]},
"fairShareConstraintRuntime": null
}
]}
}
}]}
},
{
"name": "Cluster1Server2",
"partitionRuntimes": {"items": [{
"name": "Partition1",
"resourceManagerRuntime": {
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime"
],
"name": "Partition1ResourceManager",
"type": "ResourceManagerRuntime",
"resourceRuntimes": {"items": [
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"FileOpen"
],
"usage": 2,
"name": "FileOpen",
"type": "ResourceRuntime",
"resourceType": "file-open",
"triggerRuntimes": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"FileOpen",
"triggerRuntimes",
"NotifyTrigger"
],
"initiated": false,
"recourseActionEventsHistory": [],
"name": "NotifyTrigger",
"lastTimeExecuted": null,
"type": "TriggerRuntime",
"activated": false
}]},
"fairShareConstraintRuntime": null
},
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"CpuUtilization"
],
"usage": 1,
"name": "CpuUtilization",
"type": "ResourceRuntime",
"resourceType": "cpu-utilization",
"triggerRuntimes": {"items": [
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"CpuUtilization",
"triggerRuntimes",
"NotifyTrigger"
],
"initiated": false,
"recourseActionEventsHistory": [],
"name": "NotifyTrigger",
"lastTimeExecuted": null,
"type": "TriggerRuntime",
"activated": false
},
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"CpuUtilization",
"triggerRuntimes",
"SlowTrigger"
],
"initiated": false,
"recourseActionEventsHistory": [],
"name": "SlowTrigger",
"lastTimeExecuted": null,
"type": "TriggerRuntime",
"activated": false
}
]},
"fairShareConstraintRuntime": null
},
{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"HeapRetained"
],
"usage": 6,
"name": "HeapRetained",
"type": "ResourceRuntime",
"resourceType": "heap-retained",
"triggerRuntimes": {"items": [{
"identity": [
"partitionRuntimes",
"Partition1",
"resourceManagerRuntime",
"resourceRuntimes",
"HeapRetained",
"triggerRuntimes",
"NotifyTrigger"
],
"initiated": false,
"recourseActionEventsHistory": [],
"name": "NotifyTrigger",
"lastTimeExecuted": null,
"type": "TriggerRuntime",
"activated": false
}]},
"fairShareConstraintRuntime": null
}
]}
}
}]}
}
]}}
The following example script demonstrates how an Operator starts and stops partition-scoped applications.
Note:
To view long URLs, use the scroll bar located beneath the section.
----------------------------------------------------------------------
Demonstrate a partition operator starting and stopping a partitioned app
----------------------------------------------------------------------
----------------------------------------------------------------------
Get the app's state on one of the servers in the cluster
----------------------------------------------------------------------
curl -v \
--user Partition1Operator:Partition1Operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ target='Cluster1Server1' }" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/appDeploymentRuntimes/fairShare/getState
HTTP/1.1 200 OK
Response Body:
{"return": "STATE_ACTIVE"}
----------------------------------------------------------------------
Synchronously stop the app
----------------------------------------------------------------------
curl -v \
--user Partition1Operator:Partition1Operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/appDeploymentRuntimes/fairShare/stop
HTTP/1.1 200 OK
Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/partitions\/Partition1\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/deploymentManager\/deploymentProgressObjects\/fairShare"
}],
"identity": [
"domainPartitionRuntimes",
"Partition1",
"deploymentManager",
"deploymentProgressObjects",
"fairShare"
],
"rootExceptions": [],
"endTimeAsLong": 1470764295801,
"deploymentMessages": [
"[Deployer:149192]Operation \"stop\" on application \"fairShare\" is in progress on \"Cluster1Server1\".",
"[Deployer:149192]Operation \"stop\" on application \"fairShare\" is in progress on \"Cluster1Server2\".",
"[Deployer:149194]Operation \"stop\" on application \"fairShare\" has succeeded on \"Cluster1Server1\".",
"[Deployer:149194]Operation \"stop\" on application \"fairShare\" has succeeded on \"Cluster1Server2\"."
],
"name": "fairShare",
"operationType": 2,
"startTimeAsLong": 1470764295737,
"state": "STATE_COMPLETED",
"id": "6",
"type": "DeploymentProgressObject",
"targets": ["Partition1VirtualTarget"],
"applicationName": "fairShare",
"failedTargets": [],
"progress": "success",
"completed": true,
"intervalToPoll": 1000,
"startTime": "2016-08-09T13:38:15.737-04",
"endTime": "2016-08-09T13:38:15.801-04"
}
----------------------------------------------------------------------
Get the app's state on one of the servers in the cluster
----------------------------------------------------------------------
curl -v \
--user Partition1Operator:Partition1Operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ target='Cluster1Server1' }" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/appDeploymentRuntimes/fairShare/getState
HTTP/1.1 200 OK
Response Body:
{"return": "STATE_PREPARED"}
----------------------------------------------------------------------
Synchronously start the app
----------------------------------------------------------------------
curl -v \
--user Partition1Operator:Partition1Operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/appDeploymentRuntimes/fairShare/start
HTTP/1.1 200 OK
Response Body:
{
"links": [{
"rel": "job",
"href": "http:\/\/localhost:7001\/partitions\/Partition1\/management\/weblogic\/latest\/domainRuntime\/domainPartitionRuntimes\/Partition1\/deploymentManager\/deploymentProgressObjects\/fairShare"
}],
"identity": [
"domainPartitionRuntimes",
"Partition1",
"deploymentManager",
"deploymentProgressObjects",
"fairShare"
],
"rootExceptions": [],
"endTimeAsLong": 1470764296346,
"deploymentMessages": [
"[Deployer:149192]Operation \"start\" on application \"fairShare\" is in progress on \"Cluster1Server1\".",
"[Deployer:149192]Operation \"start\" on application \"fairShare\" is in progress on \"Cluster1Server2\".",
"[Deployer:149194]Operation \"start\" on application \"fairShare\" has succeeded on \"Cluster1Server1\".",
"[Deployer:149194]Operation \"start\" on application \"fairShare\" has succeeded on \"Cluster1Server2\"."
],
"name": "fairShare",
"operationType": 1,
"startTimeAsLong": 1470764296165,
"state": "STATE_COMPLETED",
"id": "7",
"type": "DeploymentProgressObject",
"targets": ["Partition1VirtualTarget"],
"applicationName": "fairShare",
"failedTargets": [],
"progress": "success",
"completed": true,
"intervalToPoll": 1000,
"startTime": "2016-08-09T13:38:16.165-04",
"endTime": "2016-08-09T13:38:16.346-04"
}
----------------------------------------------------------------------
Get the app's state on one of the servers in the cluster
----------------------------------------------------------------------
curl -v \
--user Partition1Operator:Partition1Operator123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{ target='Cluster1Server1' }" \
-X POST http://localhost:7001/partitions/Partition1/management/weblogic/latest/domainRuntime/domainPartitionRuntimes/Partition1/deploymentManager/appDeploymentRuntimes/fairShare/getState
HTTP/1.1 200 OK
Response Body:
{"return": "STATE_ACTIVE"}