Lesson 4: Create an application deployment scenario
About this task

- One server is running an application server.
- One server is running a database.
- One server is running an application server and a client for the database.

In this lesson, you create topologies to describe how your application will be deployed on both of these environments, in each case using the same physical model from the previous lesson. Using the same physical model for each deployment instance illustrates how you can model the technology choices in the physical model once and then apply those choices to many deployment instances.
All the units in the infrastructure topologies have a contract of public, rather than public-editable as all of your previous units have. You can see the contract of a unit by double-clicking it and selecting General from the list at the top of the pop-up window:

By contrast, the units in the topologies that you create in this lesson have a contract of private. Up to this point in the tutorial, all of the units you created have a contract of public-editable, because the units were at least one level of abstraction above a deployment instance. Thus, any problems or dependencies on the units could be resolved in a later topology by providing other links or units. However, the topologies that you create in this lesson represent specific deployment instances. Therefore, all problems and dependencies must be resolved before you can use the topology as a deployment instance.
Also, all these units are concrete because they represent specific, existing hardware and software. Until now, most of the units that you have worked with are conceptual, for many of the same reasons that they are public-editable.
Realizing the physical model to the test infrastructure
Procedure
Results
Importing the application components
About this task
Show me Lesson- Importing the application components
The sample project includes an EAR file (that is, a Java EE application), a WAR file (a web application), and a DDL file (a specification for a group of database tables) in the Resources folder. For the purposes of the tutorial, imagine that this application was sent to you to be deployed as described in the physical model. In this section, you add these application components to the deployment instance and specify how they will be deployed.
Procedure
Results

Realizing the physical model to the production infrastructure
About this task
- Create a new topology for the deployment instance. This topology must have a default contract of private.
- Import the deployment infrastructure topology diagram.
- Import the physical model topology diagram.
- Import the EAR, WAR, and DDL files and set their install states.
- Create realization and hosting links.
- Create the dependency link to the database and use the resolution to configure the database connection.
When you are finished, the new topology will look similar to this:

Summary
You can import the completed project for this tutorial into your workspace to check your work. To import this project, see the sample Planning deployment with the topology editor tutorial.














