[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]
Sessions over spring and terracotta problem  XML
Forum Index -> Terracotta for Web Sessions
Author Message
angel106

neo

Joined: 12/30/2012 00:37:34
Messages: 1
Offline

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
klalithr

consul

Joined: 01/23/2011 10:58:07
Messages: 489
Offline

Whats your tomcat version? Terracotta Version? Any luck trying to debug this with the developers console? Any errors in the logs?

Karthik Lalithraj (Terracotta)
 
Forum Index -> Terracotta for Web Sessions
Go to:   
Powered by JForum 2.1.7 © JForum Team