Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FISH-8152 Micro - Devmode - Store session state #6529

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* only if the new code is made subject to such option by the copyright
* holder.
*/
// Portions Copyright [2016-2020] [Payara Foundation and/or its affiliates]
// Portions Copyright [2016-2024] [Payara Foundation and/or its affiliates]

package org.glassfish.api.deployment;

Expand Down Expand Up @@ -303,6 +303,7 @@ public static class ParameterNames {
public static final String DEPLOYMENT_ORDER = "deploymentorder";
public static final String ALT_DD = "altdd";
public static final String RUNTIME_ALT_DD = "runtimealtdd";
public static final String KEEP_STATE = "keepState";
public static final String HOT_DEPLOY = "hotdeploy";
public static final String SOURCES_CHANGED = "sourceschanged";
public static final String METADATA_CHANGED = "metadatachanged";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* only if the new code is made subject to such option by the copyright
* holder.
*/
// Portions Copyright [2016-2021] [Payara Foundation and/or its affiliates]
// Portions Copyright [2016-2024] [Payara Foundation and/or its affiliates]

package com.sun.enterprise.v3.server;

Expand Down Expand Up @@ -263,6 +263,10 @@ private void reloadApp(AppReloadInfo appInfo) throws IOException {
deployParam.set(DeployCommandParameters.ParameterNames.SOURCES_CHANGED, sourcesChanged);
}
}
boolean keepState = Boolean.parseBoolean(reloadFile.getProperty(DeployCommandParameters.ParameterNames.KEEP_STATE));
if(keepState) {
deployParam.set(DeployCommandParameters.ParameterNames.KEEP_STATE, "true");
}
commandRunner.getCommandInvocation("deploy", new XMLActionReporter(), kernelSubject).parameters(deployParam).execute();

appInfo.recordLoad();
Expand Down