|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * applications/creating_applications/odc-creating-applications-using-developer-perspective.adoc |
| 4 | + |
1 | 5 | :_content-type: PROCEDURE
|
2 | 6 | [id="odc-deploying-java-applications_{context}"]
|
3 |
| -= Upload JAR files for easy deployment of Java applications |
| 7 | += Deploying a Java application by uploading a JAR file |
4 | 8 |
|
5 |
| -You can use the JAR files in the *Topology* view of the *Developer* perspective to deploy your Java applications. You can upload a JAR file using the following options: |
| 9 | +You can use the web console *Developer* perspective to upload a JAR file by using the following options: |
6 | 10 |
|
7 |
| -* Navigate to the *+Add* view of the *Developer* perspective, and click *Upload JAR file* in the *From Local Machine* tile. Browse and select your JAR file, or drag and drop a JAR file to deploy your application. |
| 11 | +* Navigate to the *+Add* view of the *Developer* perspective, and click *Upload JAR file* in the *From Local Machine* tile. Browse and select your JAR file, or drag a JAR file to deploy your application. |
8 | 12 |
|
9 |
| -* Navigate to the *Topology* view and use the *Upload JAR file* option, or drag and drop a JAR file to deploy your application. |
| 13 | +* Navigate to the *Topology* view and use the *Upload JAR file* option, or drag a JAR file to deploy your application. |
10 | 14 |
|
11 | 15 | * Use the in-context menu in the *Topology* view, and then use the *Upload JAR file* option to upload your JAR file to deploy your application.
|
12 | 16 |
|
13 |
| -Use the following instructions to upload a JAR file in the *Topology* view to deploy a Java application: |
| 17 | +.Prerequisites |
| 18 | + |
| 19 | +* The Cluster Samples Operator must be installed by a cluster administrator. |
| 20 | +* You have access to the {product-title} web console and are in the *Developer* perspective. |
14 | 21 |
|
15 | 22 | .Procedure
|
16 | 23 |
|
17 |
| -. In the *Topology* view, right-click anywhere in the *Topology* view to see the *Add to Project* menu. |
| 24 | +. In the *Topology* view, right-click anywhere to view the *Add to Project* menu. |
18 | 25 |
|
19 |
| -. Hover over the *Add to Project* menu to see the menu options, and then select the *Upload JAR file* option to see the *Upload JAR file* form . Alternatively, you can drag and drop the JAR file in the *Topology* view. |
| 26 | +. Hover over the *Add to Project* menu to see the menu options, and then select the *Upload JAR file* option to see the *Upload JAR file* form. Alternatively, you can drag the JAR file into the *Topology* view. |
20 | 27 |
|
21 |
| -. In the *JAR file* field, browse for the required JAR file on your local machine and upload it. Alternatively, you can drag and drop the JAR file on the field. A toast alert is displayed at the top right if an incompatible file type is dragged and dropped on the *Topology* view. A field error is displayed if an incompatible file type is dropped on the field in the upload form. |
| 28 | +. In the *JAR file* field, browse for the required JAR file on your local machine and upload it. Alternatively, you can drag the JAR file on to the field. A toast alert is displayed at the top right if an incompatible file type is dragged into the *Topology* view. A field error is displayed if an incompatible file type is dropped on the field in the upload form. |
22 | 29 |
|
23 |
| -. You can further specify optional Java commands to customize your deployed application. The Runtime Icon and Builder Image is selected by default. If a Builder Image is not auto-detected, select a Builder Image. If required, you can change the version using the *Builder Image Version* drop-down list. |
| 30 | +. The runtime icon and builder image are selected by default. If a builder image is not auto-detected, select a builder image. If required, you can change the version using the *Builder Image Version* drop-down list. |
24 | 31 |
|
25 |
| -. In the optional *Application Name* field, enter a unique name for your application for the resource labelling. |
| 32 | +. Optional: In the *Application Name* field, enter a unique name for your application to use for resource labelling. |
26 | 33 |
|
27 | 34 | . In the *Name* field, enter a unique component name for the associated resources.
|
28 | 35 |
|
29 |
| -. Optional: Using the *Resource type* drop-down list, select a different resource type from the list of default resource types. |
| 36 | +. Optional: Use the *Resource type* drop-down list to change the resource type. |
30 | 37 |
|
31 |
| -. In the *Advanced options*, click *Create a Route to the Application* to configure a public URL for your deployed application. |
| 38 | +. In the *Advanced options* menu, click *Create a Route to the Application* to configure a public URL for your deployed application. |
32 | 39 |
|
33 |
| -. Click *Create* to deploy the application. The user sees a toast notification notifying that the JAR file is being uploaded and takes a while. The toast notification also includes a link to view the build logs. |
| 40 | +. Click *Create* to deploy the application. A toast notification is shown to notify you that the JAR file is being uploaded. The toast notification also includes a link to view the build logs. |
34 | 41 |
|
35 |
| -+ |
36 | 42 | [NOTE]
|
37 | 43 | ====
|
38 |
| -If the user attempts to close the browser tab while the build is running, a web alert would be displayed asking the user if they actually want to leave the page. |
| 44 | +If you attempt to close the browser tab while the build is running, a web alert is displayed. |
39 | 45 | ====
|
40 | 46 |
|
41 |
| -After the JAR file is uploaded and the application is deployed, you can see the deployment in the *Topology* view. |
| 47 | +After the JAR file is uploaded and the application is deployed, you can view the application in the *Topology* view. |
0 commit comments