The Clustered Dukes Bank application is a sample three-tier Application Services application that uses MySQL or Microsoft SQL Server as its database, JBoss Server as its application server, and Apache HTTP server as its load balancer that you can deploy to your test environment.

About this task

The initialize_db_script script creates and initializes the dukes_db database in the MySQL or SQL Server. The Dukes_Bank_App EAR application component uses the dukes_db database, which is deployed in the JBoss server. The JBoss appserver node is defined as a cluster that allows scaling out to multiple nodes to handle a higher load. The Apache HTTP server handles the load balancing.

Use the predefined sample application only in a test environment.

Prerequisites

Procedure

  1. On the Application Services title bar, click the drop-down menu and select Applications.
  2. Click Clustered Dukes Bank App.
  3. Select the application version.

    Option

    Action

    Linux-based Clustered Dukes Bank

    Select version 2.1.0.

    Windows-based Clustered Dukes Bank

    Select version 3.0.0.

  4. Click the Blueprint screenshot at the top of the screen.
  5. In the blueprint editor, select the JBossAppServer service and type the appropriate property value.
    • For the Windows-based Clustered Dukes Bank, update the JAVA_INSTALL_DIR property.

    • For the Linux-based Clustered Dukes Bank, update the JAVA_HOME property.

    During deployment, the Application Services agent in the JBossAppServer service should be able to access the installed JRE.

  6. For the Linux-based Clustered Dukes Bank, if the cloud template is in a private network without a proxy, when you deploy the application, add a YUM configuration task to each virtual machine in the deployment profile, and set the repository_url property to use a CentOS 6.3 32-bit repository hosted in the private network.
  7. Create a deployment profile and deploy the application.
  8. To access the deployed application, open a supported Web browser and type the http://Load_Balancer_IP:8081/bank/main.faces URL.

    The Load_Balancer_IP is the IP address of the deployed load balancer.

  9. Use the log in 200 and password foobar to access the application.

What to do next

Initiate an update process to scale or modify configuration of the Clustered Dukes Bank 3.0.0 or 2.1.0 application version. See Initiate an Update Process to Scale Sample Applications and Initiate an Update Process to Modify Configurations in Sample Applications.