Red Hat JBoss AS7 Application Deploy Project
A Red Hat JBoss project to deploy an ear file
Here is a summary of what this project will achieve.
This project is designed to deploy test application into JBoss AS7 Platform using RapidDeploy.
The server in the project is Linux.
The project is preconfigured with one target server.
- A remote Linux server with firewall configuration that allow connection from the machine when RapidDeploy instance is installed (for testing purposes we suggest to turn the firewall off).
- Java JRE 1.6 (for JBoss AS7) and JRE 1.8 (for RapidDeploy) are installed on the server preferably by using JBoss Installation using RapidDeploy
- JBoss AS7 is installed on target server preferably by using JBoss Installation using RapidDeploy
What is preconfigured and demonstrated.
- One target server for Linux. The user will need to configure the actual hostname for this logical server definition, and any SSH credentials such as username, password or key/pem file.
- StartServerTask task to start JBoss server if it is not started (see the task specification)
- DeployApplicationTask task to deploy ear file included in project files (see the task specification)
How to use this project.
- Download the project to your desktop by clicking on one of the links. The file will be saved as JBOSS_AS_7_DEPLOY_APPLICATION.zip
- Log into your RapidDeploy instance as mvadmin.
- Navigate to Resources-> Projects.
- In the top right hand corner click on the Upload Project button.
- Select the zip file you downloaded in step 1.
- You are guided through a project import wizard. You can normally accept the defaults.
Once the project is imported, there are a couple of things you'll need to do.
Firstly, you will need to change the server configuration. In order to do that navigate to Resources -> Targets -> Servers and find JBoss-Server (this is the name we used in our sample project). Edit this server - put correct Hostname then navigate to Transport tab and check if it is possible to connect to your remote Linux server by clicking Test Connection.
Note that Successful connection is mandatory to go further!
- Secondly, in the uploaded project, you will need to change the data dictionary properties for your installation. Navigate to Resources-> Projects select the JBOSS_AS_7_DEPLOY_APPLICATION project and on the Orchestration tab, select the sub Data Dictionary sub-tab. Review and change entries as required, and save the project.
- You need to create deployment package for the project . Go to the Packages tab, click Create Package button.
- Navigate to Jobs-> New Job.
- Navigate to Jobs-> New Job.
- Double click on the 'Empty' project job box, and select the project you created earlier from the droplist.
- Select the Target you want to deploy from the droplist.
- Select the Version (package version) you want to deploy from the droplist.
- Since there is only one package, it is preselected. The latest package will always be preselected by default.
- Click on the Run button in the bottom right corner, enter a comment for this run and click and click Yes .
- The deployment is started. Click on the Running Jobs icon in the top right corner and you see the tasks executed and job log in real time.
- Verify install:
- Navigate to http://[your-ip]/:8080 and from here use the link to access the admin console on port 9990 with the username/password you set in the RapidDeploy Data Dictionary.
- Navigate to http://[your-ip]/:8080/jpetstore to see the deployed and running JPetstore application