This resource manages the external resource references for an application.
The resource supports the following methods:
The GET method on this resource returns a listing of the external resource references for this application.
The response body returned includes an ApplicationBindables entity that contains information about external resource references for the specified application.
This method can return the following links:
uri=/management/wls/{version}/deployments/application/id/{application-name} rel=parent
This method returns one of the Standard HTTP Status Codes.
This example uses the GET request to display the bindables for an application.
Example Request
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/wls/latest/deployments/application/id/MyApp/bindables
Example Response
HTTP/1.1 200 OK Response Body: { "links": [{ "rel": "parent", "uri": "http:\/\/localhost:7001\/management\/wls\/latest\/deployments\/application\/id\/MyApp" }], "item": { "writeable": true, "bindables": [ { "name": "JNDIName", "jndiName": "gddsBean1", "path": [ { "name": "ApplicationDescriptor", "type": "DescriptorMBean" }, { "name": "gddsBean2", "type": "ResourceDescriptionBean" } ] }, { "name": "JNDIName", "jndiName": "gddsBean1", "path": [ { "name": "ApplicationDescriptor", "type": "DescriptorMBean" }, { "name": "gddsBean3", "type": "ResourceEnvDescriptionBean" } ] }, { "name": "JNDIName", "type": "ejb", "jndiName": "gddsBean1", "path": [ { "name": "ApplicationDescriptor", "type": "DescriptorMBean" }, { "name": "gddsBean1", "type": "EjbReferenceDescriptionBean" } ] }, { "name": "JNDIName", "jndiName": "gddsBean", "path": [ { "name": "mywar.war", "type": "AppDeploymentConfigurationModuleMBean" }, { "name": "WebAppDescriptor", "type": "DescriptorMBean" }, { "name": "gddsBean2", "type": "ResourceDescriptionBean" } ] }, { "name": "JNDIName", "jndiName": "gddsBean", "path": [ { "name": "mywar.war", "type": "AppDeploymentConfigurationModuleMBean" }, { "name": "WebAppDescriptor", "type": "DescriptorMBean" }, { "name": "gddsBean3", "type": "ResourceEnvDescriptionBean" } ] }, { "name": "JNDIName", "type": "ejb", "jndiName": "gddsBean", "path": [ { "name": "mywar.war", "type": "AppDeploymentConfigurationModuleMBean" }, { "name": "WebAppDescriptor", "type": "DescriptorMBean" }, { "name": "gddsBean1", "type": "EjbReferenceDescriptionBean" } ] } ] } }
The POST method updates external resource references for the application. The application must already have a deployment plan before you can call this method.
The request body must include a fully populated ApplicationBindables entity that describes the bindables for the application.
The response body returned contains a message stating that the application bindables were updated.
This method returns one of the Standard HTTP Status Codes.
This example uses the POST method to update the bindables for an application.
Example Request
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -H Content-Type:application/json \ -d "{ 'bindables': [ { 'jndiName': 'JNDINAME1', 'name': 'JNDIName', 'type': 'Ejb', 'path': [ { 'name': 'ApplicationDescriptor', 'type': 'DescriptorMBean' }, { 'name': 'gddsBean1', 'type': 'EjbReferenceDescriptionBean' } ] }, { 'jndiName': 'JNDINAME2', 'name': 'JNDIName', 'type': 'JmsConnectionFactory', 'path': [ { 'name': 'ApplicationDescriptor', 'type': 'DescriptorMBean' }, { 'name': 'gddsBean2', 'type': 'ResourceDescriptionBean' } ] }, { 'jndiName': 'JNDINAME3', 'name': 'JNDIName', 'type': 'Resource Adapter', 'path': [ { 'name': 'ApplicationDescriptor', 'type': 'DescriptorMBean' }, { 'name': 'gddsBean3', 'type': 'ResourceEnvDescriptionBean' } ] }, { 'jndiName': 'JNDINAME4', 'name': 'JNDIName', 'type': 'JmsConnectionFactory', 'path': [ { 'name': 'mywar.war', 'type': 'AppDeploymentConfigurationModuleMBean' }, { 'name': 'WebAppDescriptor', 'type': 'DescriptorMBean' }, { 'type': 'WeblogicWebAppBean' }, { 'name': 'gddsBean2', 'type': 'ResourceDescriptionBean' } ] }, { 'jndiName': 'JNDINAME5', 'name': 'JNDIName', 'type': 'Resource Adapter', 'path': [ { 'name': 'mywar.war', 'type': 'AppDeploymentConfigurationModuleMBean' }, { 'name': 'WebAppDescriptor', 'type': 'DescriptorMBean' }, { 'type': 'WeblogicWebAppBean' }, { 'name': 'gddsBean3', 'type': 'ResourceEnvDescriptionBean' } ] }, { 'jndiName': 'JNDINAME6', 'name': 'JNDIName', 'type': 'Ejb', 'path': [ { 'name': 'mywar.war', 'type': 'AppDeploymentConfigurationModuleMBean' }, { 'name': 'WebAppDescriptor', 'type': 'DescriptorMBean' }, { 'type': 'WeblogicWebAppBean' }, { 'name': 'gddsBean1', 'type': 'EjbReferenceDescriptionBean' } ] } ] }" \ -X POST http://localhost:7001/management/wls/latest/deployments/application/id/MyApp/bindables
Example Response
HTTP/1.1 100 Continue HTTP/1.1 200 OK Response Body: {"messages": [{ "message": "Successfully updated 'MyApp'.", "severity": "SUCCESS" }]}