Author |
Message |
09/25/2006 06:40:38
|
simoneg76
neo
Joined: 09/25/2006 06:32:30
Messages: 1
Offline
|
Hi everybody,
i downloaded for testing Terracotta Sessions.
I tested it, tring a simple web application to see non-serializable object in session, using built-in tomcat 5.5 servers...and it's ok...
Now, i need to test it using my development enviroment, made by 3 servers:
- 1 Entrypoint server (192.168.1.1) (TC Server, isn't it ???)
- 2 Tomcat 5.0 with MyApp installed on 8080 port (192.168.1.2 & .3)
well....how i have to configure TC ?
Is there any example ?
thanks a lot,
Simone
|
|
|
09/26/2006 17:08:23
|
tgautier
seraphim
Joined: 06/05/2006 12:19:26
Messages: 1781
Offline
|
Simone,
I have sent you a PM to help you with installing Terracotta into your development cluster.
In the meantime, you can reference our online documentation at http://www.terracottatech.com/documentation.shtml.
Best Regards,
Taylor
|
|
|
02/08/2007 05:23:04
|
ZennouRyuu
neo
Joined: 02/08/2007 05:20:22
Messages: 2
Offline
|
Hate to resurrect an old thread like this, but I'm in the same position as the original poster. Can I get a leg up on where to go from here? The above link no longer works..... Perhaps we can post it here rather than PM so others can see it as well :)
|
|
|
02/08/2007 08:36:35
|
tgautier
seraphim
Joined: 06/05/2006 12:19:26
Messages: 1781
Offline
|
ZennouRyuu:
There was a thread on the tc-users mailing list just one or two weeks ago about this very problem, and how to solve it. Since Nabble is archiving our list for us, you can read about it here:
http://www.nabble.com/Running-Terracota-Sessions-on-seperate-machines-tf3053569.html#a8488333
You're right though, it definitely should be in the documentation. We're undertaking an overhaul of our docs as we speak. I have just added this task to JIRA : http://jira.terracotta.org/jira/browse/CDV-119
Thanks for the feedback.
Taylor
|
|
|
02/08/2007 08:42:04
|
ZennouRyuu
neo
Joined: 02/08/2007 05:20:22
Messages: 2
Offline
|
Excellent, I will digest that immediately :) And once I'm done I will put some effort into wikifying my progress.
Thanks for the info
Dustan
|
|
|
02/08/2007 08:48:42
|
tgautier
seraphim
Joined: 06/05/2006 12:19:26
Messages: 1781
Offline
|
Great!
|
|
|
06/02/2007 23:36:42
|
RaduTanasa
neo
Joined: 06/02/2007 23:22:47
Messages: 4
Offline
|
I apologize for stressing you people up with this recurring problem, but I couldn't get things working with a Terracotta server and 2 tomcat instances on 2 different machines. I've read all the forums, but didn't get to silver bullet. And what I've tried didn't work. I mean...the session is not clustered. It would be great if someone could tell me the exact steps I have to undertake in order to get things running. Moreover, it would be great if someone could explain me exactly how it works. I mean, I saw that all examples only set some environment variables on the clients and that's that. How do the clients interact with the Terracotta server?
Thank you very much!
Radu Tanasa
|
|
|
06/03/2007 01:18:44
|
kbhasin
consul
Joined: 12/04/2006 13:08:21
Messages: 340
Offline
|
Hello Radu,
The following entries in the Terracotta Troubleshooting Guide will give you the step-by-step instructions to use Terracotta with Tomcat Sessions.
Terracotta Sessions specific:
http://www.terracotta.org/confluence/display/docs1/Troubleshooting+Guide#TroubleshootingGuide-HowdoIuseTCSessionswithTomcat%3F
You should read this link also as you will need to perform steps 1 and 2 regardless of what you are using Terracotta for:
http://www.terracotta.org/confluence/display/docs1/Troubleshooting+Guide#TroubleshootingGuide-HowcanIdeployterracottainmyclusteredenvironmenttoclustermyplainjavaapplication%2Cmyapplicationserver%2Cservletcontainer%3F
Basically:
1. You set some system properties and Java Options on the client side (in this case the Tomcat instances) so that Terracotta can integrate in the runtime environment and do the necessary byte-code instrumentation.
2. The Terracotta runtime on the client side communicates with the Terracotta Server through a TCP socket connection. You specify the ip or hostname of the Terracotta Server in the tc-config.xml [on the Terracotta server end] and as one of the system properties when you start your client with Terracotta. On startup, the client pulls in this tc-config.xml from the Terracotta Server to get all the cluster configuration information.
Please let this thread know if you still run into issues so we can document them better if needed.
Regards,
Kunal Bhasin.
|
Regards,
Kunal Bhasin,
Terracotta, Inc.
Be a part of the Terracotta community: Join now! |
|
|
06/03/2007 13:42:28
|
RaduTanasa
neo
Joined: 06/02/2007 23:22:47
Messages: 4
Offline
|
Thank you very much for your reply. I have just one more question before I try again. What value does TC_JAVA_OPTS have? I saw this:
<code>
setlocal
set TC_SERVER_HOST=localhost
set TC_CONFIG_PATH=%TC_SERVER_HOST%:9510
call "%TC_INSTALL_DIR%\bin\dso-env.bat" -q
set JAVA_OPTS=%TC_JAVA_OPTS%
call startup.bat
endlocal
</code>
Thank you again!
Radu Tanasa
|
|
|
06/03/2007 13:56:51
|
RaduTanasa
neo
Joined: 06/02/2007 23:22:47
Messages: 4
Offline
|
Sorry, I missed the part where it said that dso-env.sh/bat sets that envioronment variable. I will give it a try tomorrow. Thank you again for your support!
|
|
|
06/03/2007 14:06:26
|
kbhasin
consul
Joined: 12/04/2006 13:08:21
Messages: 340
Offline
|
Hey Radu,
Just to clarify, TC_JAVA_OPTS is set by dso-env but TC_INSTALL_DIR is not set by dso-env, you should set this to the installation directory (e.g. c:\terracotta-2.3.0 or /usr/share/terracotta-2.3.0) just like you do with tomcat and CATALINA_HOME. You can do this by either adding it to the script you posted above or by just adding it to your Windows system environment variables or Linux environment (.bashrc or .profile under your home directory).
Regards,
Kunal Bhasin.
|
Regards,
Kunal Bhasin,
Terracotta, Inc.
Be a part of the Terracotta community: Join now! |
|
|
06/04/2007 23:59:19
|
RaduTanasa
neo
Joined: 06/02/2007 23:22:47
Messages: 4
Offline
|
Thank you! I managed to get this working on the same machine with 2 different Tomcat instances, but on linux. Tomorrow is the big day as I have to make it work on windows on separate machines. But I now understood what needs to be done and how it works. Thanks a lot for your support!
|
|
|
06/05/2007 00:05:21
|
kbhasin
consul
Joined: 12/04/2006 13:08:21
Messages: 340
Offline
|
Glad to know!
|
Regards,
Kunal Bhasin,
Terracotta, Inc.
Be a part of the Terracotta community: Join now! |
|
|
|