I used two client hosts with Ubuntu 11 box. Each has installed Tomcat 7 as application server. Under them, there are several application. I'd like one of them to share one session.
By following the offical docs. http://terracotta.org/documentation/web-sessions/installation-guide
I installed terracotta 3.6.2 on the third host. Then configed the two Tomcat 7 context.xml by adding
<Valve className="org.terracotta.session.TerracottaTomcat70xSessionValve" tcConfigUrl="myterracottaIP:9510"/>
I created one test.jps to print session id and copied them to the ROOT floder of Tomcat servers.
After run terracotta server and tomcat servers, everything looks fine. In Develop Console, I have seen two clients connected to terracotta server and sessions in Session section. But when I browse the test.jps under each tomcat server, them print different session id. And also, in other appliations, there is no session got shared. Every application in each Tomcat use its own session.
Is there any configuraion I have missed? Or there should be merely one appliaction within Tomcat? Otherwise, Terracotta would not know which session should be shared?
I used default terracotta installation, I did not find any tc-config.xml within the installation directory. So, by default, Terracotta uses its built-in configuration? And if I need to change the configuration, I will need to create tc-config.xml from scratch?
Thanks in avdance. These issues have been baffling me for few days.