Skip to content

Commit 284d97b

Browse files
author
Jason Freeberg
authored
Windows Java updates
- [ ] Remove instances of "Wildfly" (not available on Windows) - [ ] HTTP_PLATFORM_PORT - [ ] Java Flight Recorder
1 parent 599ad07 commit 284d97b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

articles/app-service/configure-language-java.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ This guide provides key concepts and instructions for Java developers using in A
2020

2121
## Deploying your app
2222

23-
You can use [Maven Plugin for Azure App Service](/java/api/overview/azure/maven/azure-webapp-maven-plugin/readme) to deploy your .war files. Deployment with popular IDEs is also supported with [Azure Toolkit for IntelliJ](/java/azure/intellij/azure-toolkit-for-intellij) or [Azure Toolkit for Eclipse](/java/azure/eclipse/azure-toolkit-for-eclipse).
23+
You can use [Maven Plugin for Azure App Service](/java/api/overview/azure/maven/azure-webapp-maven-plugin/readme) to deploy your .war or .jar files. Deployment with popular IDEs is also supported with [Azure Toolkit for IntelliJ](/java/azure/intellij/azure-toolkit-for-intellij) or [Azure Toolkit for Eclipse](/java/azure/eclipse/azure-toolkit-for-eclipse).
2424

2525
Otherwise, your deployment method will depend on your archive type:
2626

2727
- To deploy .war files to Tomcat, use the `/api/wardeploy/` endpoint to POST your archive file. For more information on this API, please see [this documentation](https://docs.microsoft.com/azure/app-service/deploy-zip#deploy-war-file).
28+
- To deploy .jar files to Java SE, use the `/api/zipdeploy/` endpoint of the Kudu site. For more information on this API, please see [this documentation](https://docs.microsoft.com/azure/app-service/deploy-zip#rest).
2829

2930
Do not deploy your .war using FTP. The FTP tool is designed to upload startup scripts, dependencies, or other runtime files. It is not the optimal choice for deploying web apps.
3031

@@ -124,9 +125,9 @@ Java applications running in App Service have the same set of [security best pra
124125

125126
Set up app authentication in the Azure portal with the **Authentication and Authorization** option. From there, you can enable authentication using Azure Active Directory or social logins like Facebook, Google, or GitHub. Azure portal configuration only works when configuring a single authentication provider. For more information, see [Configure your App Service app to use Azure Active Directory login](configure-authentication-provider-aad.md) and the related articles for other identity providers. If you need to enable multiple sign-in providers, follow the instructions in the [customize App Service authentication](app-service-authentication-how-to.md) article.
126127

127-
#### Tomcat and Wildfly
128+
#### Tomcat
128129

129-
Your Tomcat or Wildfly application can access the user's claims directly from the servlet by casting the Principal object to a Map object. The Map object will map each claim type to a collection of the claims for that type. In the code below, `request` is an instance of `HttpServletRequest`.
130+
Your Tomcat application can access the user's claims directly from the servlet by casting the Principal object to a Map object. The Map object will map each claim type to a collection of the claims for that type. In the code below, `request` is an instance of `HttpServletRequest`.
130131

131132
```java
132133
Map<String, Collection<String>> map = (Map<String, Collection<String>>) request.getUserPrincipal();
@@ -283,6 +284,10 @@ To edit Tomcat's `server.xml` or other configuration files, first take a note of
283284
284285
Finally, restart your App Service. Your deployments should go to `D:\home\site\wwwroot\webapps` just as before.
285286
287+
## Configure Java SE
288+
289+
When running a .JAR application on Java SE on Windows, `server.port` is passed as a command line option as your application starts. You can manually resolve the HTTP port from the environment variable, `HTTP_PLATFORM_PORT`. The value of this environment variable will be the HTTP port your application should listen on.
290+
286291
## Java runtime statement of support
287292
288293
### JDK versions and maintenance

0 commit comments

Comments
 (0)