[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 can I config the clients to the terracotta Servers???  XML
Forum Index -> Terracotta for Web Sessions
Author Message
Joy.Cai

journeyman

Joined: 07/19/2007 19:14:55
Messages: 40
Offline


Hi,

I have config two terracotta servers running on two computer(192.168.0.12 and 192.168.0.13),the graph like this link of ACTIVE-PASSIVE over network:
http://www.terracotta.org/confluence/display/docs1/Terracotta+Server+Cluster#TerracottaServerCluster-ACTIVEPASSIVEovernetwork

now,how can I config these clients to connect to the two servers or to get sessionsData from the two servers??

thanks in advance!

Joy
tgautier

seraphim

Joined: 06/05/2006 12:19:26
Messages: 1781
Offline

There's a huge amount of documentation to get you started. For sessions, start here:

http://www.terracotta.org/confluence/display/docs1/Sessions+Quick+Start


[WWW]
Joy.Cai

journeyman

Joined: 07/19/2007 19:14:55
Messages: 40
Offline


oh ,maybe you don't understand what I ask at all.
Joy.Cai

journeyman

Joined: 07/19/2007 19:14:55
Messages: 40
Offline


the config file for the two servers of 192.168.0.12 and 192.168.0.13 I have been set ,and they really can works.

I look at your documents of http://www.terracotta.org/confluence/display/docs1/Concept+and+Architecture+Guide#ConceptandArchitectureGuide-TerracottaClient
You say that there are two mode about terracotta client(run in a standalone JVM or in an application server)
Now,I want to use the first mode of run in a standalone JVM to connect to my two servers. How can I config it?
Besides, I find a document athttp://www.terracotta.org/confluence/display/docs1/Configuration+Guide+and+Reference#ConfigurationGuideandReference-%2Ftc%3Atcconfig%2Fsystem%2Fconfigurationmodel
For the step of "/tc:tc-config/system/configuration-model" ,it say that if I config the tc-config.xml with
Code:
<configuration-model>production</configuration-model>

then it can force each client has obtained its configuration from its server.
and I should setted the 'tc.config' system propery as -Dtc.config=serverHost:dsoPort.

Is that right??


thanks in advance.

Joy
zeeiyer

consul

Joined: 05/24/2006 14:28:28
Messages: 493
Offline

Yes - independent of mode, you can set the config java-system property passed to your client as as -Dtc.config=<host-name>:<dso-port-number> and it will obtain the config from the terracotta server.

I don't understand your former question - the terracotta client is your application and you may have deployed it to an application server (like Tomcat) or you are presumably running it standalone (e.g. on the command line you type java <command-line-options>)
thanks.

Sreeni Iyer, Terracotta.
Not a member yet - Click here to join the Terracotta Community
Joy.Cai

journeyman

Joined: 07/19/2007 19:14:55
Messages: 40
Offline

Hi zeeiyer,

althought I have been config the mode and set the config java-system property as -Dtc.config=192.168.0.12:9510 for my terracotta client,it sounds
like doesn't work.

Can you give me some example?

192.168.0.12 is a terracotta server,and 192.168.0.52 is a terracotta client.

thanks

Joy
kbhasin

consul

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

Can you try the steps mentioned in the following link and see if you still run into issues? Look at steps 4 and 5 in particular. Thanks a lot!

http://www.terracotta.org/confluence/display/docs1/Troubleshooting+Guide#TroubleshootingGuide-HowcanIdeployterracottainmyclusteredenvironmenttoclustermyplainjavaapplication%2Cmyapplicationserver%2Cservletcontainer%3F

Regards,
Kunal Bhasin.

Regards,

Kunal Bhasin,
Terracotta, Inc.

Be a part of the Terracotta community: Join now!
Joy.Cai

journeyman

Joined: 07/19/2007 19:14:55
Messages: 40
Offline


my problem is solved.

thanks.
 
Forum Index -> Terracotta for Web Sessions
Go to:   
Powered by JForum 2.1.7 © JForum Team