25.2.2.3.3. Test the Non-Clustered JBoss EAP 6 Managed Domain
Summary
This topic covers the steps required to test the non-clustered JBoss EAP 6 managed domain on a Red Hat AMI (Amazon Machine Image).
To test the managed domain you must know the elastic IP addresses of both the Apache HTTP server and JBoss EAP 6 domain controller.
Prerequisites
- Configure and launch the domain controller. See Section 25.2.2.3.1, “Launch an Instance to Serve as a Domain Controller” .
- Configure and launch the host controllers. See Section 25.2.2.3.2, “Launch One or More Instances to Serve as Host Controllers” .
Procedure 25.5. Test the Web Server
- Navigate to
http://ELASTIC_IP_OF_APACHE_HTTPDin a browser to confirm the web server is running successfully.
Procedure 25.6. Test the Domain Controller
- Navigate to
http://ELASTIC_IP_OF_DOMAIN_CONTROLLER:9990/console - Log in using the username of
adminand the password specified in the User Data field for the domain controller and the admin console landing page for a managed domain should appear (http://ELASTIC_IP_OF_DOMAIN_CONTROLLER:9990/console/App.html#server-instances). - Click the Server label at the top right side of the screen, and select any of the host controllers in the Host dropdown menu at the top left side of the screen.
- Verify that each host controller has two server configurations called
server-oneandserver-twoand that they both belong to themain-server-group. - Log out of the JBoss EAP 6 Admin Console.
Procedure 25.7. Test the Host Controllers
- Navigate to
http://ELASTIC_IP_OF_APACHE_HTTPD/helloto test that the sample application is running successfully. The textHello World!should appear in the browser.If the text is not visible, refer here: Section 18.5.1, "About Troubleshooting Amazon EC2". - Connect to the Apache HTTP server instance:
$ ssh -L7654:localhost:7654 ELASTIC_IP_OF_APACHE_HTTPD
- Navigate to
http://localhost:7654/mod_cluster-managerto confirm all instances are running correctly.
Result
The JBoss EAP 6 web server, domain controller, and host controllers are running correctly on a Red Hat AMI.