Tag: session scope

会话使用JSF在Google App Engine中丢失

我已按照以下指示在我的Google App Engine应用程序中配置了JSF 2.1: https://sites.google.com/a/wildstartech.com/adventures-in-java/Java-Platform-Enterprise-Edition/JavaServer-Faces/javaserver-faces-21/configuring-javaserver-faces-21-to-运行在最谷歌应用程序内,发动机采用月食 该应用程序在本地运行时运行良好,但在Google App Engine中部署会话时会丢失,例如:更新页面中的任何其他组件时组件值会丢失,并且SessionScope支持bean字段也会丢失。 我的web.xml文件是: JavaServerFaces javax.faces.STATE_SAVING_METHOD client javax.faces.DEFAULT_SUFFIX .xhtml com.sun.faces.expressionFactory org.jboss.el.ExpressionFactoryImpl com.sun.faces.enableThreading false javax.faces.PROJECT_STAGE Production javax.faces.FACELETS_SKIP_COMMENTS true primefaces.UPLOADER commons primefaces.THEME home 30 faces/home.xhtml Faces Servlet javax.faces.webapp.FacesServlet 1 Faces Servlet /faces/* *.jsf *.xhtml PrimeFaces FileUpload Filter org.primefaces.webapp.filter.FileUploadFilter thresholdSize 2147483647 PrimeFaces FileUpload Filter Faces Servlet javax.faces.application.ViewExpiredException /faces/home.xhtml SystemServiceServlet com.google.api.server.spi.SystemServiceServlet services SystemServiceServlet /_ah/spi/* […]

ScopedProxy如何决定使用哪个Session?

Singleton不能自动assemblySessionBean,但ScopedProxy可以。 假设100个用户在同一个应用程序中同时拥有一个有效的Session,那么ScopedProxy如何决定会话的含义? 我不认为ScopedProxy正在选择任何随机会话,这在我看来是无稽之谈。 ScopedProxy如何决定使用哪个会话? 如果0个用户有会话怎么办? 会发生NullPointerException吗? @Async是一个不同的线程而不是调用Request-Processing-Thread如何将HttpRequest-Context注入Async任务?