Learn how to create a simple business application based on Java Platform, Enterprise
Edition application, and how to add manual dependencies between the components.
In the following example, a database with sample data is used. The database contains the
following components:
- WebSphere Cell with some servers and deployed Java Platform, Enterprise Edition
applications
- JBoss servers with some applications
- Computer systems, of which some are a part of virtual environment
- DB2 databases
- Web servers
- other components
The first aim of this task is to create a simple business application based on a Java Platform,
Enterprise Edition application. The second aim of this task is to add components to the existing
business application, either by creating another selector, or adding manual dependencies between
components.
-
Open Data Management Portal.
-
In the Functions pane, click Discovery if you use TADDM 7.3.0, or
7.3.0.1, or Analytics, if you use TADDM 7.3.0.2, or later.
-
Click Grouping Patterns. The Grouping Patterns table is displayed.
-
In the name field, enter
EDay Trader.
-
Set the pattern type to
Business Application.
-
For the Schedule option, choose
Every Saturday
night.
-
In the Description field, enter
EDay Trader application
and click Next.
-
Click New to add a selector.
-
In the Name field, enter
EDay Trader's J2EE App.
-
In the Description field, enter
EDay Trader J2EE
application, and click Choose.
-
In the query editor, select
Instance-based as selection type.
-
Browse your database, select the components that you want to be your core CIs, click
Add, and then click OK.
- Optional:
To see the results, click Test.
-
Click OK. You are in the Create a new Grouping
Pattern window again.
-
To enable data traversing, make sure that the Use Dependency Traversal
Template check box is selected. Select the HigherDown and
Lowerup options, and clear the remaining ones.
-
Click Finish.
Generating business application manually
-
To see the new business application, you do not have to wait for the scheduled time of
generation. You can generate the application manually.
-
Open the Grouping Patterns pane.
-
Select the grouping pattern that you created and click Execute.
-
Wait for a while and then click Refresh View.
-
To view the new business application, go to the Discovered Components pane.
Creating a new selector and adding it to the EDay Trader business
application.
-
If you notice that some components are not part of the business application that you created,
you can add them by creating a new selector. The missing elements for
EDay Trader
business application are DB2 database and Web Server. First, create a new selector with DB2 database
used by EDay Trader application.
-
In the Grouping Patterns pane, select the
EDay Trader pattern and click
Edit.
-
Go to the Selectors tab and click New.
-
In the Name field, enter
EDay Trader database and click
Choose.
-
Choose the core CI the same way as in step 11 and 12. Add the missing database.
-
Do not change grouping name expression, it must generate the same name as the previous
selector. In this way, compositions created from these two selectors are merged into one business
application. Click OK.
-
To confirm the changes, click OK.
-
To see the updated business application, regenerate the grouping pattern and go to the
Discovered Components pane.
Creating manual dependencies
-
Web server is still not part of the new business application, and there is no connection
between Java Platform, Enterprise Edition application and the database. However, instead of creating
many selectors, you can create manual dependencies between Java Platform, Enterprise Edition
Application and DB2 database, and between Java Platform, Enterprise Edition application and Web
Server.
-
Add Java Platform, Enterprise Edition application to the cart by right-clicking it in the
topology and selecting Add to cart option.
-
In the Discovered Components pane, click Cart and select the application
check box.
-
From the Actions list, select Show
dependencies.
-
Click New, select Dependent and browse for the
database that you want to add. Click OK.
-
To add the dependency for Web Server, click New, select
Provider and browse for the server. Click OK.
-
Click Close.
Note: With the manual dependencies created, you no longer need the additional selector that you
created in step 18. Go to the Grouping Patterns pane, select EDay Trader pattern
and click Edit. In the Selectors tab, select the
EDay Trader database selector and click either Delete to
remove it, or select the Disabled check box, so that it is not
processed.