[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Messages posted by: angel106  XML
Profile for angel106 -> Messages posted by angel106 [1]
Author Message
I am trying to create a session replication with tomcat and spring over terracotta. I put the Valve in the context.xml as instructed and when a request comes through i can see that it contains a terracotta http session object. However, spring session scoped beans seem to have no knowledge of this and when i try to get the session through the "RequestContextHolder" i get the plain old session object. I cannot find any documentation on how to correctly do this. I ended up putting the HttpSession in ThreadLocal and using it where i need it further down the road instead of using session scoped beans, but i don't think that this is the "correct" way of doing it. can anyone please shed some light on this?

Thanks in advance
 
Profile for angel106 -> Messages posted by angel106 [1]
Go to:   
Powered by JForum 2.1.7 © JForum Team