Announcement Announcement Module
Collapse
No announcement yet.
Jboss as 7 and Spring @Scope("sessio") Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jboss as 7 and Spring @Scope("sessio")

    Hi Guys.

    I'm migrating an app to the Jboss 7. But I'm having a problem.
    I think it's something of a beginner.

    I have a Component annotated with @Scope("session")

    Code:
    @Component
    @Scope("session")
    public class SessionUser {
    The problem is that every time that this component is injected. He is injecting a new component instance.
    Is app already runs on JBoss 6.x.

    Someone tell me if something changed in the settings? Or have any tips?

    Thanks.

  • #2
    Hello Guys

    This problem is not in Spring.
    This problem is in Jboss AS 7.

    I found a temporary solution to the problem.
    Was to pass the following parameter in start jboss

    -Dorg.apache.tomcat.util.http.ServerCookie.FWD_SLAS H_IS_SEPARATOR=false

    Follow link for an issue
    https://issues.jboss.org/browse/AS7-1283

    Thanks

    Comment

    Working...
    X