Creating simple business application and adding manual dependencies

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.

  1. Open Data Management Portal.
  2. 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.
  3. Click Grouping Patterns. The Grouping Patterns table is displayed.
  4. In the name field, enter EDay Trader.
  5. Set the pattern type to Business Application.
  6. For the Schedule option, choose Every Saturday night.
  7. In the Description field, enter EDay Trader application and click Next.
  8. Click New to add a selector.
  9. In the Name field, enter EDay Trader's J2EE App.
  10. In the Description field, enter EDay Trader J2EE application, and click Choose.
  11. In the query editor, select Instance-based as selection type.
  12. Browse your database, select the components that you want to be your core CIs, click Add, and then click OK.
  13. Optional: To see the results, click Test.
  14. Click OK. You are in the Create a new Grouping Pattern window again.
  15. 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.
  16. Click Finish.

Generating business application manually

  1. To see the new business application, you do not have to wait for the scheduled time of generation. You can generate the application manually.
    1. Open the Grouping Patterns pane.
    2. Select the grouping pattern that you created and click Execute.
    3. Wait for a while and then click Refresh View.
    4. 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.

  1. 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.
    1. In the Grouping Patterns pane, select the EDay Trader pattern and click Edit.
    2. Go to the Selectors tab and click New.
    3. In the Name field, enter EDay Trader database and click Choose.
    4. Choose the core CI the same way as in step 11 and 12. Add the missing database.
    5. 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.
    6. To confirm the changes, click OK.
    7. To see the updated business application, regenerate the grouping pattern and go to the Discovered Components pane.

Creating manual dependencies

  1. 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.
    1. Add Java Platform, Enterprise Edition application to the cart by right-clicking it in the topology and selecting Add to cart option.
    2. In the Discovered Components pane, click Cart and select the application check box.
    3. From the Actions list, select Show dependencies.
    4. Click New, select Dependent and browse for the database that you want to add. Click OK.
    5. To add the dependency for Web Server, click New, select Provider and browse for the server. Click OK.
    6. 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.