--1. Cluster structureLoad balancer -> web server -> 2 payara instances (so called Node 1 and Node 2)2. ProblemWhen I opened A.xhtml, first request went to Node 1. @Viewscoped bean was created.I turned off Node 1, then click a button on A.xhtml to reload the view, request went to Node 2.However, @Viewscoped bean datas were lost on Node 2.Note that all my @Sessionscoped beans were correctly replicated and their datas were kept.Is this normal behavior?*Additional Information3. Technology- Payara Server 4.1.1.163- JSF 2.2 (Mojarra implementation)- Using Hazelcast for session replication4. Detailed configuration4.1. glassfish-web-xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
<glassfish-web-app>
<parameter-encoding default-charset="UTF-8" />
<context-root>/</context-root>
<session-config>
<session-manager persistence-type="hazelcast">
<!--<session-manager persistence-type="replicated">-->
<manager-properties>
<property name="persistenceFrequency" value="web-method"/>
<property name="relaxCacheVersionSemantics" value="true"/>
</manager-properties>
<store-properties>
<property name="persistenceScope" value="session"/>
</store-properties>
</session-manager>
<cookie-properties>
<property name="cookieSecure" value="false"/>
</cookie-properties>
</session-config>
</glassfish-web-app>4.2. web.xml (some parts were left out)
<web-app xmlns:xsi="w3.org/2001/XMLSchema-instance"
xmlns="xmlns.jcp.org/xml/ns/javaee"
xsi:schemaLocation="xmlns.jcp.org/xml/ns/javaee xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
<distributable/>
<env-entry>
<env-entry-name>jsf/ClientSideSecretKey</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>xxxxxxxxxxxxxxxxxxx</env-entry-value>
</env-entry>
<!-- setting save viewstate by hidden field by client -->
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<filter>
<filter-name>LoginFilter</filter-name>
<filter-class>com.c1s.common.filter.LoginFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>LoginFilter</filter-name>
<url-pattern>*.xhtml</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>ASYNC</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
<tracking-mode>COOKIE</tracking-mode>
</session-config>
</web-app>
You received this message because you are subscribed to the Google Groups "Payara Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/payara-forum/e6af5891-b567-4588-aac7-b014dc40436f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Payara Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/payara-forum/876f44ba-b22c-4966-9e17-7c274ffb4580%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Payara Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/payara-forum/a42bb428-1687-4c03-91c4-14a5f7b7180a%40googlegroups.com.
Possibly a bug. Please, create an issue on Payara github with a reproducible example application.Ondro
2018-05-19 12:19 GMT+02:00 NamNVH <hoangna...@gmail.com>:
Hi Ondro,I used @SessionScoped instead of @ViewScoped, everything worked as expected.Datas were still kept when the request went to Node 2.Could you think of anything which may cause my problem?
On Saturday, May 19, 2018 at 1:15:47 PM UTC+7, Ondro Mihályi wrote:Does replication work if you use @SessionScoped instead of @ViewScoped? If not, then there's a problem somewhere in your configuration.Can you try?
--
You received this message because you are subscribed to the Google Groups "Payara Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum...@googlegroups.com.
Hi Ondro,I created an issue on github with the sample:Could you please take a look.
On Monday, May 21, 2018 at 2:04:30 AM UTC+7, Ondro Mihályi wrote:Possibly a bug. Please, create an issue on Payara github with a reproducible example application.Ondro2018-05-19 12:19 GMT+02:00 NamNVH <hoangna...@gmail.com>:Hi Ondro,--I used @SessionScoped instead of @ViewScoped, everything worked as expected.Datas were still kept when the request went to Node 2.Could you think of anything which may cause my problem?
On Saturday, May 19, 2018 at 1:15:47 PM UTC+7, Ondro Mihályi wrote:Does replication work if you use @SessionScoped instead of @ViewScoped? If not, then there's a problem somewhere in your configuration.Can you try?
You received this message because you are subscribed to the Google Groups "Payara Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/payara-forum/a42bb428-1687-4c03-91c4-14a5f7b7180a%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Payara Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/payara-forum/e7121561-ce09-47a1-9f1c-cdec14ec78d2%40googlegroups.com.