Use a deployment plan

By the time AS7 is ready for full release, you will be able to manage deployment plans in the Admin Console. For now, the only way to use them without writing your own application is to use the domain.interactive demo included in the AS7 source code.
Task Prerequisites
Procedure 8. Use domain.interactive to create a deployment plan
  1. Change to the demos/ directory of the AS7 source tree.
  2. Build the domain.interactive demo.

    maven package -D-Dexample=domain.interactive
    Result:The demo starts automatically.
    The demo starts in your terminal. The main screen of the demo is an interactive menu.
    The Domain Interactive demo
    The Domain Interactive demo
    Figure 11. The Domain Interactive demo

  3. Choose option 12 to Create and Execute and Deployment Plan.

    Type 12 to choose Create and Execute a Deployment Plan.
  4. Choose option 1

    Choose the option to Add new deployment content to the domain.
  5. Choose a deployment file on your system.

    A file chooser appears. Browse to a deployment file (such as a WAR or EAR), select it, and click Open.
    Choose a deployment file
    Choose a deployment file
    Figure 12. Choose a deployment file

  6. Apply the deployment action.

    1. Choose option9 to Apply deployment actions to a server group.
    2. Choose the server group to deploy to.
    3. Choose the algorithm to use when rolling out the deployment. To deploy to all servers at once, choose 4.
    Apply the deployment action
    Figure 13. Apply the deployment action

  7. View the logging output of the Application Server to verify that the deployment succeeded.

    If the deployment succeeded, the logging output, in the terminal where the Application Server is running, shows that the content is added.
    Logging output for a successful deployment
    Logging output for a successful deployment
    Figure 14. Logging output for a successful deployment

Result: The deployment plan is executed.
The deployment rolls out to the servers in the server group, in the way that you choose. The results are logged by the Application Server logging subsystem.