[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]
How to replication session between 2 tomcat7 use terrcotta web-session ?  XML
Forum Index -> Terracotta for Web Sessions
Author Message
jackson0

journeyman

Joined: 06/21/2012 21:50:26
Messages: 35
Offline

Hi. I installed successful teracotta web-session, connected 2 server tomcat7 with terracotta. Now how to replication session between 2 server tomcat7 ?
I want when login tomcat1 the tomcat2 also automatic login (tomcat 1 like tomcat2 and has load balancer)

I've read two instructions but I can not understand:
http://artur.ejsmont.org/blog/content/how-to-setup-terracotta-session-clustering-and-replication-for-apache-tomcat-6
http://www.liferay.com/community/wiki/-/wiki/Main/High+Availability+Guide#section-High+Availability+Guide-Database+Clustering (Tomcat Clustering)

Sorry for english not good. Thank
ilevy

consul

Joined: 04/16/2008 10:26:42
Messages: 357
Offline

Use these instructions:

http://terracotta.org/documentation/web-sessions/installation-guide
jackson0

journeyman

Joined: 06/21/2012 21:50:26
Messages: 35
Offline

Thank for reply. I successfully installed terracotta web-session follow instruction http://terracotta.org/documentation/web-sessions/installation-guide.
Terracotta has received the session, two clients tomcat connected to the terracotta . But i think that we need to configure more for tomcat ?
ilevy

consul

Joined: 04/16/2008 10:26:42
Messages: 357
Offline

If you are saying there's no session replication, can you provide more details? Maybe a cookie-domain issue?
jackson0

journeyman

Joined: 06/21/2012 21:50:26
Messages: 35
Offline

Thank ilevy.
My problem is:
I want when i login in tomcat1, then tomcat2 will automatically login. But it does not work.
I do not the what errors?
Where can i see "Log"?
jackson0

journeyman

Joined: 06/21/2012 21:50:26
Messages: 35
Offline

It worker. Thank very much, ilevy.
troya

neo

Joined: 07/02/2012 23:37:24
Messages: 4
Offline

HI All,

I have same problem with jackson, that is :

I want when i login in tomcat1, then tomcat2 will automatically login. But it does not work.
I use tomcat 6 and terracotta 3.6.2

this is step by step which i've done :

1.add terracotta library into {tomcat}\lib

terracotta-session-1.2.2.jar
terracotta-toolkit-1.5-runtime-4.2.0.jar

2.add configuration file in {tomcat_home}\conf\context.xml

this is my conf:

<Valve className="org.terracotta.session.TerracottaTomcat60xSessionValve" tcConfigUrl="localhost:9510"/>

3.Run Terracotta Server

${TERRACOTTA_HOME}/bin/start-tc-server.sh

4.Run Tomcat1 and Tomcat2

BUt ,I want when i login in tomcat1, then tomcat2 will automatically login. But it does not work.

Help me to solve this


Thanks
jackson0

journeyman

Joined: 06/21/2012 21:50:26
Messages: 35
Offline

Hi troya, I think you misunderstood the session in terracotta, I used to think like that.
Session in terracotta is responsible for store session.
If tomcat1 and tomcat2 joined Terracotta server, if tomcat1 and tomcat2 load balancer then when tomcat1 shutdown, you not login again on tomcat2.
Of if tomcat1 and tomcat2 not load balancer, when tomcat1 shutdown, you not login again tomcat1 when server tomcat1 startup.

Sorry for English not good.
troya

neo

Joined: 07/02/2012 23:37:24
Messages: 4
Offline

Hi Jackson,

So, what should i do with this ?

Is another configuration which i should config again ?

I have test login to my app on tomcat1, then i shutdown tomcat1 and try to access tomcat2, but i need login again.

Is anothr missing configuration ?
jackson0

journeyman

Joined: 06/21/2012 21:50:26
Messages: 35
Offline

hi troya.
the steps you do is right.
But tomcat1 and tomcat2 must load balancer if you want shutdown tomcat1 and automatic login tomcat2
 
Forum Index -> Terracotta for Web Sessions
Go to:   
Powered by JForum 2.1.7 © JForum Team