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?