The Clustered Dukes Bank application is a sample three-tier vCloud Application Director 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.

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.

Register the uploaded CentOS 6.3 32-bit Linux template or Windows Server 2008 R2 SP1 vApp template to a cloud provider. See Using the Sample Templates and Register the vCloud Director Cloud Provider and Template.

Map the cloud template to the CentOS63 32bit or Windows Server 2008 R2 SP1 logical template. See Add a Logical Template to the Catalog.

Log in to vCloud Application Director with a user account that belongs to the Default group.

Verify that your user account has the ROLE_APP_ARCHITECT application architect role and ROLE_DEPLOYER deployer role assigned to it.

For the Linux-based Clustered Dukes Bank, if your system requires a proxy to access the Internet, verify that your proxy connections are properly configured. See Configure vCloud Application Director to Use a Proxy for External URLs.

For the Windows-based Clustered Dukes Bank, verify that the Windows virtual machine has a valid JRE installation path that you can use in the template.

Understand the basic concepts of creating a deployment profile, deploying an application, and updating a deployed application. See Deploying Applications.


On the vCloud Application Director title bar, click the drop-down menu and select Applications.


Click Clustered Dukes Bank App.


Select the application version.



Linux-based Clustered Dukes Bank

Select version 2.1.0.

Windows-based Clustered Dukes Bank

Select version 3.0.0.


Click the Blueprint screenshot at the top of the screen.


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 vCloud Application Director agent in the JBossAppServer service should be able to access the installed JRE.


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.


Create a deployment profile and deploy the application.


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.


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

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.