[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: mtking  XML
Profile for mtking -> Messages posted by mtking [2]
Author Message
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.

老马,我现在用的是terracotta 3.6.2。 默认安装没有找到tc-config.xml。粗略的按照文档一配置后,都能运行起来。但是session并没有共享。 我是不是还要写个tc-config
Profile for mtking -> Messages posted by mtking [2]
Go to:   
Powered by JForum 2.1.7 © JForum Team