You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Install a Java SE implementation version 8 or later - for example, [Microsoft build of OpenJDK](/java/openjdk).
21
+
- Install [Maven](https://maven.apache.org/download.cgi), version 3.5.0 or higher.
22
22
- Ensure the Azure identity you use to sign in has either the [Contributor](/azure/role-based-access-control/built-in-roles#contributor) role or the [Owner](/azure/role-based-access-control/built-in-roles#owner) role in the current subscription. For an overview of Azure roles, see [What is Azure role-based access control (Azure RBAC)?](/azure/role-based-access-control/overview)
23
23
24
24
## Deploy JBoss EAP Server on Azure VM
@@ -27,21 +27,19 @@ The steps in this section direct you to deploy JBoss EAP Server on Azure VMs.
27
27
28
28
:::image type="content" source="media/jboss-eap-single-server-azure-vm/portal-start-experience.png" alt-text="Screenshot of Azure portal showing JBoss EAP Server on Azure VM." lightbox="media/jboss-eap-single-server-azure-vm/portal-start-experience.png":::
29
29
30
-
The following steps show you how to find the JBoss EAP Server on Azure VM offer and fill out the **Basics** pane.
30
+
The following steps show you how to find the JBoss EAP Server on Azure VM offer and fill out the **Basics** pane:
31
31
32
-
1. In the search bar at the top of the Azure portal, enter *JBoss EAP*. In the search results, in the **Marketplace** section, select **JBoss EAP standalone on RHEL VM**.
32
+
1. In the search bar at the top of the Azure portal, enter *JBoss EAP*. In the search results, in the **Marketplace** section, select **JBoss EAP standalone on RHEL VM**. In the drop-down menu, ensure that **PAYG** is selected.
33
33
34
34
:::image type="content" source="media/jboss-eap-single-server-azure-vm/marketplace-search-results.png" alt-text="Screenshot of Azure portal showing JBoss EAP Server on Azure VM in search results." lightbox="media/jboss-eap-single-server-azure-vm/marketplace-search-results.png":::
35
35
36
-
In the drop-down menu, ensure **PAYG** is selected.
37
-
38
-
Alternatively, you can also go directly to the [JBoss EAP standalone on RHEL VM](https://aka.ms/eap-vm-single-portal) offer. In this case, the correct plan is already selected for you.
36
+
Alternatively, you can go directly to the [JBoss EAP standalone on RHEL VM](https://aka.ms/eap-vm-single-portal) offer. In this case, the correct plan is already selected for you.
39
37
40
38
In either case, this offer deploys JBoss EAP by providing your Red Hat subscription at deployment time, and runs it on Red Hat Enterprise Linux using a pay-as-you-go payment configuration for the base VM.
41
39
42
40
1. On the offer page, select **Create**.
43
41
1. On the **Basics** pane, ensure the value shown in the **Subscription** field is the same one that has the roles listed in the prerequisites section.
44
-
1. You must deploy the offer in an empty resource group. In the **Resource group** field, select **Create new** and fill in a value for the resource group. Because resource groups must be unique within a subscription, pick a unique name. An easy way to have unique names is to use a combination of your initials, today's date, and some identifier. For example, *ejb0823jbosseapvm*.
42
+
1. You must deploy the offer in an empty resource group. In the **Resource group** field, select **Create new** and fill in a value for the resource group. Because resource groups must be unique within a subscription, pick a unique name. An easy way to have unique names is to use a combination of your initials, today's date, and some identifier. For example, `ejb0823jbosseapvm`.
45
43
1. Under **Instance details**, select the region for the deployment.
46
44
1. Leave the default VM size for **Virtual machine size**.
47
45
1. Leave the default option **OpenJDK 8** for **JDK version**.
@@ -61,15 +59,15 @@ The following steps show you how to fill out **JBoss EAP Settings** pane and sta
61
59
1. Select **Create**.
62
60
1. Track the progress of the deployment on the **Deployment is in progress** page.
63
61
64
-
Depending on network conditions and other activity in your selected region, the deployment may take up to 6 minutes to complete. After that, you should see text **Your deployment is complete** displayed on the deployment page.
62
+
Depending on network conditions and other activity in your selected region, the deployment might take up to 6 minutes to complete. After that, you should see text **Your deployment is complete** displayed on the deployment page.
65
63
66
64
## Optional: Verify the functionality of the deployment
67
65
68
66
1. Open the resource group you just created in the Azure portal.
69
-
2. Select the VM resource which name is "jbosieapVm".
70
-
3. In the **Overview** pane, note the **Public IP address** assigned to the network interface.
71
-
4. Copy the public IP address.
72
-
1. Paste the public IP address in an Internet-connected web browser, append `:9990`, and press **Enter**. You should see the familiar **Red Hat JBoss Enterprise Application Platform** management console sign-in screen, as shown in the following screenshot.
67
+
1. Select the VM resource named `jbosieapVm`.
68
+
1. In the **Overview** pane, note the **Public IP address** assigned to the network interface.
69
+
1. Copy the public IP address.
70
+
1. Paste the public IP address in an Internet-connected web browser, append `:9990`, and press **Enter**. You should see the familiar **Red Hat JBoss Enterprise Application Platform** management console sign-in screen, as shown in the following screenshot:
@@ -84,96 +82,90 @@ Depending on network conditions and other activity in your selected region, the
84
82
85
83
## Optional: Deploy the app to the JBoss EAP Server
86
84
87
-
The following steps will guide you to create a "Hello World" application and then deploy it on JBoss EAP.
85
+
The following steps show you how to create a "Hello World" application and then deploy it on JBoss EAP:
88
86
89
-
2.**Create a Maven Project:**
87
+
1. Use the following steps to create a Maven project:
90
88
91
-
- Open a terminal or command prompt.
89
+
1. Open a terminal or command prompt.
92
90
93
-
- Navigate to the directory where you want to create your project.
91
+
1. Navigate to the directory where you want to create your project.
94
92
95
-
- Run the following Maven command to create a new Java web application:
93
+
1. Run the following Maven command to create a new Java web application. Be sure to replace `<package-name>` with your desired package name and `<project-name>` with your project name.
- Add dependencies for Java EE APIs to your `pom.xml` file to ensure you have the necessary libraries to compile the servlet:
140
+
1. Use the following steps to update the *pom.xml* file:
147
141
148
-
```xml
149
-
<dependencies>
150
-
<dependency>
151
-
<groupId>javax.servlet</groupId>
152
-
<artifactId>javax.servlet-api</artifactId>
153
-
<version>4.0.1</version>
154
-
<scope>provided</scope>
155
-
</dependency>
156
-
</dependencies>
157
-
```
142
+
1. Add dependencies for Java EE APIs to your *pom.xml* file to ensure that you have the necessary libraries to compile the servlet:
158
143
159
-
6. **Build the Project:**
144
+
```xml
145
+
<dependencies>
146
+
<dependency>
147
+
<groupId>javax.servlet</groupId>
148
+
<artifactId>javax.servlet-api</artifactId>
149
+
<version>4.0.1</version>
150
+
<scope>provided</scope>
151
+
</dependency>
152
+
</dependencies>
153
+
```
160
154
161
-
- Run `mvn package`in the root directory of your project to build the application. This will generate a `.war` file in the `target` directory.
155
+
1. Build the project by running `mvn package`in the root directory of your project. This command generates a *.war* file in the *target* directory.
162
156
163
-
7. **Deploy the Application on JBoss EAP:**
164
-
- Open the JBoss EAP admin console (`http://<public-ip-address-of-ipconfig1>:9990`).
165
-
- Deploy the `.war` file using the admin console by uploading the file in the "Deployments" section.
166
-
:::image type="content" source="media/jboss-eap-single-server-azure-vm/jboss-eap-console-upload-content.png" alt-text="Screenshot of the JBoss EAP management console Deployments tab with Upload Content menu item highlighted." lightbox="media/jboss-eap-single-server-azure-vm/jboss-eap-console-upload-content.png":::
157
+
1. Use the following steps to deploy the application on JBoss EAP:
167
158
168
-
8. **Access the Application:**
169
-
- Once deployed, you can access your "Hello World" application by navigating to `http://<public-ip-address-of-ipconfig1>:8080/helloworld/hello`inyour web browser.
159
+
1. Open the JBoss EAP admin console at `http://<public-ip-address-of-ipconfig1>:9990`.
160
+
1. Deploy the *.war* file using the admin console by uploading the fileinthe **Deployments** section.
170
161
162
+
:::image type="content" source="media/jboss-eap-single-server-azure-vm/jboss-eap-console-upload-content.png" alt-text="Screenshot of the JBoss EAP management console Deployments tab." lightbox="media/jboss-eap-single-server-azure-vm/jboss-eap-console-upload-content.png":::
171
163
172
-
## Clean up resources
164
+
1. After deployment, access your "Hello World" application by navigating to `http://<public-ip-address-of-ipconfig1>:8080/helloworld/hello`in your web browser.
173
165
174
-
To avoid Azure charges, you should clean up unnecessary resources.
166
+
## Clean up resources
175
167
176
-
Run the following command to remove the resource group, VM, network interface, virtual network, and all related resources.
168
+
To avoid Azure charges, you should clean up unnecessary resources. Run the following command to remove the resource group, VM, network interface, virtual network, and all related resources.
177
169
178
170
```azurecli
179
171
az group delete --name <resource-group-name> --yes --no-wait
0 commit comments