25.2.3.12.3. Test the Clustered JBoss EAP 6 Managed Domain
Summary
This topic covers the steps required to test the 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 cluster domain controller. See Section 25.2.3.12.1, “Launch an Instance to Serve as a Cluster Domain Controller” .
- Configure and launch the cluster host controllers. See Section 25.2.3.12.2, “Launch One or More Instances to Serve as Cluster Host Controllers” .
Procedure 25.17. Test the Apache HTTP server instance
- Navigate to
http://ELASTIC_IP_OF_APACHE_HTTP_SERVERin a browser to confirm the web server is running successfully.
Procedure 25.18. Test the Domain Controller
- Navigate to
http://ELASTIC_IP_OF_DOMAIN_CONTROLLER:9990/console - Log in using the username
adminand the password specified in the User Data field for the domain controller. Once logged in, the administration 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. Select any of the host controllers in the Host dropdown menu at the top left side of the screen.
- Verify that this host controller has two server configurations called
server-oneandserver-twoand verify that they both belong to theother-server-group.
Procedure 25.19. Test the Host Controllers
- Navigate to
http://ELASTIC_IP_OF_APACHE_HTTP_SERVER/cluster-demo/put.jspin a browser. - Verify that one of the host controllers logs the following message:
Putting date now. - Stop the server instance that logged the message in the previous step (see Stop a Server Using the Management Console).
- Navigate to
http://ELASTIC_IP_OF_APACHE_HTTP_SERVER/cluster-demo/get.jspin a browser. - Verify that the time shown is the same as the time that was
PUTusingput.jspin Step 2. - Verify that one of the running server instances logs the following message:
Getting date now. - Restart the stopped server instance (see Section 2.8.3, Start a Server Using the Management Console)
- Connect to the Apache HTTP server instance.
$ ssh -L7654:localhost:7654 ELASTIC_IP_OF_APACHE_HTTP_SERVER
- 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.