[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]
test httpsession using different tomcats and terracotta  XML
Forum Index -> Terracotta for Web Sessions
Author Message
narendra

neo

Joined: 07/30/2007 12:51:51
Messages: 6
Offline

Hi,

i want to test httpsession clustering for two tomcats using terracotta.

i install
terracotta2.0.4 ,java 1.5,tomacat 5.5, deployed myapplication on my localhost.

in anotherhost i installed java1.5 and tomcat5.5 and deployed myapplication .

now where to put tc-config.xml and what to specify inthat?
how to connect two tomcats to terracotta server with port numbers?.

i do not want to use sessionconfigurator test the httpsession clustering

plz let me know the complete process?

plz help me .i am little bit confusing.

regards
-narendra

kbhasin

consul

Joined: 12/04/2006 13:08:21
Messages: 340
Offline

Hello Narendra,

Firat of all, you should install the same terracotta distribution on all involved hosts.

Next, have you tried the steps mentioned in the following troubleshooting entry?

http://www.terracotta.org/confluence/display/docs1/Troubleshooting+Guide#TroubleshootingGuide-HowdoIuseTCSessionswithTomcat%3F

Regards,

Kunal Bhasin,
Terracotta, Inc.

Be a part of the Terracotta community: Join now!
narendra

neo

Joined: 07/30/2007 12:51:51
Messages: 6
Offline

hi,

thanks for you are reply.

i installed terracotta+tomcat+java+myapplication
i followed the below link to connect tomact with terracotta.

http://www.terracotta.org/confluence/display/docs1/Troubleshooting+Guide#TroubleshootingGuide-HowdoIuseTCSessionswithTomcat%3F

still there is no Session clustering.

plz help me.

regards
-Narendra
hhuynh

cherubim

Joined: 06/16/2006 11:54:06
Messages: 761
Offline

Hi narendra,

Could you gather these info for debugging:

1. Your appname (war file name)
2. tc-config.xml
3. Terracotta server log
4. Terracotta client log

To see clustered session, use Terracotta Admin console to check to see any root was created after you access your app website. It can be found in $TC/bin/admin.sh

Also, let us know how you decide that the session was clustered.

Thanks,

Hung-
kbhasin

consul

Joined: 12/04/2006 13:08:21
Messages: 340
Offline

narendra wrote:

i installed terracotta+tomcat+java+myapplication
i followed the below link to connect tomact with terracotta.

http://www.terracotta.org/confluence/display/docs1/Troubleshooting+Guide#TroubleshootingGuide-HowdoIuseTCSessionswithTomcat%3F

still there is no Session clustering.
-Narendra 


Hello Narendra,

Since you are accessing the webapplication on two different hosts,if the domain names e.g. http://host1:8080/app/login.jsp and http://host2:8080/app/login.jsp are different, the cookies and hence the SessionIDs are also different which means the container (Tomcat) will treat these requests as different sessions.

You can either use a load balancer which acts as a proxy and forwards Http Requests to the 2 machines or you can first try to deploy two instances of tomcat on the same host but different ports and see if the sessions are being clustered.

Like Hung has suggested, connect to the administration console to make sure that you see two clients connected when both tomcat instances are up.

Regards,

Kunal Bhasin,
Terracotta, Inc.

Be a part of the Terracotta community: Join now!
 
Forum Index -> Terracotta for Web Sessions
Go to:   
Powered by JForum 2.1.7 © JForum Team