[seam-commits] Seam SVN: r12433 - modules/servlet/trunk/src/main/java/org/jboss/seam/servlet.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Apr 12 05:18:59 EDT 2010
Author: nickarls
Date: 2010-04-12 05:18:59 -0400 (Mon, 12 Apr 2010)
New Revision: 12433
Modified:
modules/servlet/trunk/src/main/java/org/jboss/seam/servlet/HttpUserArtifacts.java
Log:
Narrow scope of user http artifacts
Modified: modules/servlet/trunk/src/main/java/org/jboss/seam/servlet/HttpUserArtifacts.java
===================================================================
--- modules/servlet/trunk/src/main/java/org/jboss/seam/servlet/HttpUserArtifacts.java 2010-04-12 09:17:44 UTC (rev 12432)
+++ modules/servlet/trunk/src/main/java/org/jboss/seam/servlet/HttpUserArtifacts.java 2010-04-12 09:18:59 UTC (rev 12433)
@@ -23,7 +23,7 @@
import java.io.Serializable;
-import javax.enterprise.context.SessionScoped;
+import javax.enterprise.context.RequestScoped;
import javax.enterprise.event.Observes;
import javax.enterprise.inject.Produces;
import javax.enterprise.inject.spi.InjectionPoint;
@@ -44,7 +44,7 @@
* @author Nicklas Karlsson
*
*/
- at SessionScoped
+ at RequestScoped
public class HttpUserArtifacts implements Serializable
{
private static final long serialVersionUID = 5191073522575178427L;
@@ -59,6 +59,7 @@
{
log.trace("Servlet request initialized with event #0", e);
request = (HttpServletRequest) e.getServletRequest();
+ session = request.getSession();
}
protected void requestDestroyed(@Observes @Destroyed ServletRequestEvent e)
More information about the seam-commits
mailing list