Skip to content

Commit

Permalink
Merge pull request #6905 from Viii3/FISH-8142-Update-Mojarra
Browse files Browse the repository at this point in the history
FISH-8142 Update Mojarra
  • Loading branch information
Viii3 authored Aug 29, 2024
2 parents c5b087a + f911f2a commit 2f7e3d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@
* only if the new code is made subject to such option by the copyright
* holder.
*/
// Portions Copyright 2024 Payara Foundation and/or its affiliates

package org.glassfish.faces.integration;

import static com.sun.enterprise.web.Constants.DEPLOYMENT_CONTEXT_ATTRIBUTE;
import static com.sun.enterprise.web.Constants.ENABLE_HA_ATTRIBUTE;
import static com.sun.enterprise.web.Constants.IS_DISTRIBUTABLE_ATTRIBUTE;
import static com.sun.faces.config.WebConfiguration.BooleanWebContextInitParameter.EnableAgressiveSessionDirtying;
import static com.sun.faces.config.WebConfiguration.BooleanWebContextInitParameter.EnableDistributable;
import static java.lang.Boolean.TRUE;
import static java.security.AccessController.doPrivileged;
import static java.util.logging.Level.FINE;
Expand Down Expand Up @@ -460,7 +461,7 @@ public void enableHighAvailability(ServletContext ctx) {
// 2> Was deployed with --availabilityenabled --target <clustername>

WebConfiguration config = WebConfiguration.getInstance(ctx);
if (!config.isSet(EnableAgressiveSessionDirtying)) {
if (!config.isSet(EnableDistributable)) {
Object isDistributableObj = ctx.getAttribute(IS_DISTRIBUTABLE_ATTRIBUTE);
Object enableHAObj = ctx.getAttribute(ENABLE_HA_ATTRIBUTE);

Expand All @@ -473,8 +474,8 @@ public void enableHighAvailability(ServletContext ctx) {
}

if (isDistributable && enableHA) {
LOGGER.fine("setting the EnableAgressiveSessionDirtying to true");
config.overrideContextInitParameter(EnableAgressiveSessionDirtying, TRUE);
LOGGER.fine("setting EnableDistributable to true");
config.overrideContextInitParameter(EnableDistributable, TRUE);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
<osgi-resource-locator.version>1.0.3</osgi-resource-locator.version>
<snakeyaml.version>2.2</snakeyaml.version>
<jakarta.servlet.jsp.jstl.version>3.0.1</jakarta.servlet.jsp.jstl.version>
<mojarra.version>4.0.0.payara-p2</mojarra.version>
<mojarra.version>4.0.7.payara-p1</mojarra.version>
<jaxb-extra-osgi.version>2.3.0</jaxb-extra-osgi.version>

<yasson.version>3.0.4</yasson.version>
Expand Down

0 comments on commit 2f7e3d9

Please sign in to comment.