Hot Deploy and Auto Deploy
|To enable these features, the relevant ecosystem plugin to your IDE of choice must be installed.|
Enabling either the Hot Deploy or Auto Deploy feature on your IDE of choice will allow you to simply deploy web applications to Payara Server and modify any Java class of the application, upon save, any changed files within the application will be redeployed.
Payara Server provides the Hot Deployment capability, which boosts the performance of the application redeployment operation and dynamically replaces the classloader of the application on each redeployment in the hot deploy mode. Hot deploy is significantly faster than a vanilla redeployment, boosting developer productivity.
Alternatively, Payara Server also allows for a full redeployment of the application automatically via the Auto Deploy feature. It will un-deploy the existing application and redeploy the new application on every save action. As the Auto Deploy feature performs a full redeploy of an application, it is slower than hot redeploy, which redeploys only the changed part of an application.
Eclipse IDE Plugin
To enable Auto Deploy from the Eclipse IDE, open The Server panel, double click the server name and expand the Publishing section to reconfigure the setting.
The Hot Deploy mode can be enabled from the Payara Server properties page to boost the deployment performance which reuses the existing application instance relative to the modified source.
NetBeans IDE Plugin
To enable the Auto Deploy features for Payara Server on the NetBeans IDE, you must enable the Compile on Save and Deploy on Save features from the Project Properties.
Compile on Save can be found in the Build→Compile submenu of the project properties.
Deploy on Save can be found in the Run submenu of the project properties.
To enable the Hot Deploy feature for Payara Server on the NetBeans IDE, you must right-click the Server under the Services tab and select Properties. From the Commons tab check the Enable Hot Deploy checkbox.
VS Code IDE Extension
Hot Deploy and Auto Deploy can be enabled in Visual Studio Code IDE from the Deployment Settings of Payara Server.