WAS v8.5 > Administer applications and their environmentAdminister business-level applications using programming
We can use the command framework programming to create, edit, update, start, stop, delete, export, import, and query information about business-level applications. A business-level application defines an enterprise-level application.
This task assumes a basic familiarity with the command framework. Read about the command framework in the application programming interfaces documentation. Besides creating, editing, updating, starting, stopping, deleting, exporting, importing, and querying information about business-level applications using programming, we can do these tasks using the dmgr console or the wsadmin scripting tool.
- Perform any of the following tasks to administer your business-level applications using programming.
- Create an empty business-level application.
You typically create an empty business-level application and then add assets or business-level applications as composition units to the empty business-level application.
- Import an asset.
We can import an asset to register the asset with the product and optionally store the asset in the product repository so that we can later use the asset in a business-level application. An asset represents at least one binary file that implements business logic.
- Add a composition unit.
We can add an asset to a business-level application by creating a composition unit for the asset. A composition unit is typically created from an asset and contains configuration information that makes the asset runnable.
- Start a business-level application.
We can start a business-level application, which starts each composition unit in that business-level application. Each composition unit is started on the respective targets on which the business-level application is deployed.
- Stop a business-level application.
We can stop a business-level application, which stops each composition unit in that business-level application. Each composition unit is stopped on the respective targets on which the business-level application is deployed.
- Check the status of a business-level application.
We can check the status of an entire business-level application. We can also limit the status to a particular composition unit of a business-level application, a specific deployment target, or check the status of the composition unit and the deployment target at the same time.
- Delete a business-level application.
We can delete a business-level application using programming. You might delete a business-level application if the application is not functioning correctly, no longer needed, and so on.
- Delete an asset.
We can delete an asset from a business-level application using programming if the asset is not functioning corrctly, the asset is no longer needed, and so on. An asset represents at least one binary file that implements business logic.
- Delete a composition unit.
We can delete a composition unit from a business-level application if the composition unit is not functioning correctly, the composition unit is no longer needed, and so on. A composition unit is typically created from a business-level application or an asset and contains configuration information that makes the asset runnable.
- Export an asset.
We can export an asset from the current session so that we can back up the asset, import the asset to another session, and so on. An asset represents at least one binary file that implements business logic.
- List assets.
We can list the assets that have been imported to the current workspace so that we can do further asset administration, such as deleting or exporting assets. An asset represents at least one binary file that implements business logic.
- List composition units.
We can list the composition units for a specific business-level application in a session so that we can do further composition unit administration, such as deleting or adding composition units. A composition unit is typically created from a business-level application or an asset and contains configuration information that makes the asset runnable.
- List business-level applications.
We can list the business-level applications of a session so that we can do further business-level application administration such as deleting a business-level application. A business-level application is an administrative model that captures the definition of an enterprise-level application so that we can perform specific business functions, such as accounting.
- Edit a composition unit.
We can edit the configuration information in a composition unit of a business-level application if, for example, to change which modules in the composition unit are configured to run in which targets. A composition unit is typically created from a business-level application or an asset and contains configuration information that makes the asset runnable.
- Edit an asset.
We can edit the information of an asset, for example, its destination location, its relationship with other assets, and so on. An asset represents at least one binary file that implements business logic
- Edit a business-level application.
We can edit the information of a business-level application such as its description. A business-level application is an administrative model that captures the entire definition of an enterprise-level application.
- Update an asset.
We can update an asset by adding, deleting, or updating a single file or Java EE module, or by merging multiple files or Java EE modules into an asset. We can also update an asset by replacing the entire asset.
- View a composition unit.
We can view the composition unit information so that we can do other tasks associated with the composition unit, such as editing an asset or deleting a composition unit. A composition unit is typically created from a business-level application or an asset and contains configuration information that makes the asset runnable.
- View an asset.
We can view the asset information so that we can do other tasks associated with the asset, such as editing or exporting an asset. An asset represents at least one binary file that implements business logic.
- View a business-level application.
We can view business-level application information such as the description so that we can do other tasks associated with the business-level application, such as editing the business-level application. A business-level application is an administrative model that captures the entire definition of an enterprise-level application.
- List control operations.
We can list the control operations of a business-level application or a composition unit for a session. You use control operations, such as start or stop, to change or query the runtime environment of a business-level application or a composition unit.
- Save your changes to the master configuration repository.
- Synchronize changes to the master configuration across the nodes for the changes to take effect.
Results
Depending on which tasks you complete, we have created, edited, updated, started, stopped, deleted, exported, imported, or queried information about business-level applications.
If we have further business-level application updates, we can do the updates through programming, the dmgr console, or the wsadmin scripting tool.
Subtopics
- Create an empty business-level application using programming
We can create an empty business-level application, and then add assets or business-level applications as composition units to the empty business-level application.- Importing an asset using programming
We can import an asset to register the asset with the product and optionally store the asset in the product repository so that we can later use that asset in a business-level application. An asset represents at least one binary file that implements business logic.- Add a composition unit using programming
We can add an asset to a business-level application by creating a composition unit for the asset. A composition unit is typically created from a business-level application or an asset and contains configuration information that makes the asset runnable.- Start a business-level application using programming
We can start a business-level application, which starts each composition unit in that business-level application. Each composition unit is started on the respective targets on which the business-level application is deployed.- Stopping a business-level application using programming
We can stop a business-level application, which stops each composition unit in that business-level application. Each composition unit is stopped on the respective targets on which the business-level application is deployed.- Checking the status of a business-level application using programming
We can check the status of an entire business-level application. We can also limit the status to a particular composition unit of a business-level application, a specific deployment target, or check the status of the composition unit and the deployment target at the same time.- Delete a business-level application using programming
We can delete a business-level application using programming. You might delete a business-level application if it is not functioning correctly, it is no longer needed, and so on.- Delete an asset using programming
We can delete an asset from a business-level application using programming if the asset is not functioning correctly, the asset is no longer needed, and so on. An asset represents at least one binary file that implements business logic.- Delete a composition unit using programming
We can delete a composition unit from a business-level application if the composition unit is not functioning correctly, the composition unit is no longer needed, and so on. A composition unit is typically created from a business-level application or an asset and contains configuration information that makes the asset runnable.- Export an asset using programming
We can export an asset from the current session so that we can back up the asset, import the asset to another session, and so on. An asset represents at least one binary file that implements business logic.- List assets using programming
We can list the assets that have been imported so that we can do further asset administration, such as deleting or exporting assets. An asset represents at least one binary file that implements business logic.- List composition units using programming
We can list the composition units for a specific business-level application so that we can complete further composition unit administration, such as deleting or adding composition units. A composition unit is typically created from a business-level application or an asset and contains configuration information that makes the asset runnable.- List business-level applications using programming
We can list the business-level applications of a session so that we can complete further business-level application administration such as deleting a business-level application. A business-level application is an administrative model that captures the definition of an enterprise-level application so that we can perform specific business functions, such as accounting.- Edit a composition unit using programming
We can edit the configuration information in a composition unit of a business-level application if, for example, to change certain modules in the composition unit configured to run in specific targets. A composition unit is typically created from a business-level application or an asset and contains configuration information that makes the asset runnable.- Edit an asset using programming
We can edit the information of an asset such as its destination location, its relationship with other assets, and so on. An asset represents at least one binary file that implements business logic.- Edit a business-level application using programming
We can edit the information of a business-level application such as its description. A business-level application is an administrative model that captures the entire definition of an enterprise-level application.- Update an asset using programming
We can update an asset by adding, deleting, or updating a single file or Java EE module, or by merging multiple files or Java EE modules into an asset. We can also update an asset by replacing the entire asset.- View a composition unit using programming
A composition unit is typically created from a business-level application or an asset and contains configuration information that makes the asset runnable. We can view the composition unit information so that we can complete other tasks associated with the composition unit such as editing an asset or delete a composition unit.- View an asset using programming
We can view the asset information so that we can complete other tasks associated with the asset, such as editing or exporting an asset. An asset represents at least one binary file that implements business logic.- View a business-level application using programming
We can view business-level application information such as the description so that we can do other tasks associated with the business-level application, such as editing the business-level application. A business-level application is an administrative model that captures the entire definition of an enterprise-level application.- List control operations using programming
We can list the control operations of a business-level application or a composition unit for a session. We can use control operations, such as start or stop, to change or query the runtime environment of a business-level application or a composition unit.- Create an empty business-level application using programming
You can create an empty business-level application, and then add assets or business-level applications as composition units to the empty business-level application.- Importing an asset using programming
We can import an asset to register the asset with the product and optionally store the asset in the product repository so that we can later use that asset in a business-level application. An asset represents at least one binary file that implements business logic.- List assets using programming
We can list the assets that have been imported so that we can do further asset administration, such as deleting or exporting assets. An asset represents at least one binary file that implements business logic.- View an asset using programming
We can view the asset information so that we can complete other tasks associated with the asset, such as editing or exporting an asset. An asset represents at least one binary file that implements business logic.- Edit an asset using programming
We can edit the information of an asset such as its destination location, its relationship with other assets, and so on. An asset represents at least one binary file that implements business logic.- Delete an asset using programming
We can delete an asset from a business-level application using programming if the asset is not functioning correctly, the asset is no longer needed, and so on. An asset represents at least one binary file that implements business logic.- Export an asset using programming
We can export an asset from the current session so that we can back up the asset, import the asset to another session, and so on. An asset represents at least one binary file that implements business logic.- Start a business-level application using programming
We can start a business-level application, which starts each composition unit in that business-level application. Each composition unit is started on the respective targets on which the business-level application is deployed.- Stopping a business-level application using programming
We can stop a business-level application, which stops each composition unit in that business-level application. Each composition unit is stopped on the respective targets on which the business-level application is deployed.- Checking the status of a business-level application using programming
You can check the status of an entire business-level application. We can also limit the status to a particular composition unit of a business-level application, a specific deployment target, or check the status of the composition unit and the deployment target at the same time.- List business-level applications using programming
We can list the business-level applications of a session so that we can complete further business-level application administration such as deleting a business-level application. A business-level application is an administrative model that captures the definition of an enterprise-level application so that we can perform specific business functions, such as accounting.- List composition units using programming
We can list the composition units for a specific business-level application so that we can complete further composition unit administration, such as deleting or adding composition units. A composition unit is typically created from a business-level application or an asset and contains configuration information that makes the asset runnable.- List control operations using programming
We can list the control operations of a business-level application or a composition unit for a session. We can use control operations, such as start or stop, to change or query the runtime environment of a business-level application or a composition unit.- View a business-level application using programming
We can view business-level application information such as the description so that we can do other tasks associated with the business-level application, such as editing the business-level application. A business-level application is an administrative model that captures the entire definition of an enterprise-level application.- View a composition unit using programming
A composition unit is typically created from a business-level application or an asset and contains configuration information that makes the asset runnable. We can view the composition unit information so that we can complete other tasks associated with the composition unit such as editing an asset or delete a composition unit.- Add a composition unit using programming
We can add an asset to a business-level application by creating a composition unit for the asset. A composition unit is typically created from a business-level application or an asset and contains configuration information that makes the asset runnable.- Update an asset using programming
We can update an asset by adding, deleting, or updating a single file or Java EE module, or by merging multiple files or Java EE modules into an asset. We can also update an asset by replacing the entire asset.- Edit a business-level application using programming
We can edit the information of a business-level application such as its description. A business-level application is an administrative model that captures the entire definition of an enterprise-level application.- Edit a composition unit using programming
We can edit the configuration information in a composition unit of a business-level application if, for example, to change certain modules in the composition unit configured to run in specific targets. A composition unit is typically created from a business-level application or an asset and contains configuration information that makes the asset runnable.- Delete a business-level application using programming
You can delete a business-level application using programming. You might delete a business-level application if it is not functioning correctly, it is no longer needed, and so on.- Delete a composition unit using programming
We can delete a composition unit from a business-level application if the composition unit is not functioning correctly, the composition unit is no longer needed, and so on. A composition unit is typically created from a business-level application or an asset and contains configuration information that makes the asset runnable.
Related
Deploy business-level applications