[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Need to help on SPRING + hhtp session Clustering  XML
Forum Index -> Terracotta for Spring
Author Message
kumars81

neo

Joined: 06/29/2007 00:20:08
Messages: 9
Offline

Hi

I using struts in presentation layer,and spring in data layers . I can cluster the application with out HTTp session with following tc-config.xml belongs with

<spring>
<!-- Tell DSO about the webapp we're sharing -->
<jee-application name="*ClusterWeb1*">
<!-- Enable sessions -->
<session-support>false</session-support>

It works and I can cluster in remote servers too.

But i should use Http session also. There is some objects to store the Http session also. If I use session configurator to deploy my application,it works

But I just want to use both the http session and spring cluster. Then I have to specify the tc-config.xml ?

If i use the http session in cluster configuration means where the session objects and corresponding IDS going to store ?

I need expalnation atleast the first one ? Please help me....
:( kumar
zeeiyer

consul

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

I am not sure I understand the intent of your question entirely.
But if your question is how you could use the same config to cluster Spring and Sessions, all you need to add in your config is :
Code:
  <session-support>true</session-support> 
 


(instead of leaving it as false). Clustered data is stored on the Terracotta server and accessed by your client JVMs which may therefore have local references to the clustered-data.

Hope that helps
Iyer.

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

neo

Joined: 06/29/2007 00:20:08
Messages: 9
Offline

Thanks for Your reply. Instead of <spring> configuration I used <dso> configuration file. It works fine for me.

Can terracotta supports apache's Java Caching system for cache ?



steve

ophanim

Joined: 05/24/2006 14:22:53
Messages: 619
Offline

Over the next few weeks we are focused on Getting EhCache fast but the work we are doing is pretty generic to jcache style caches. Shouldn't be to hard for us to apply it to Apache's cache.

Want to post to this forum? Join the Terracotta Community
 
Forum Index -> Terracotta for Spring
Go to:   
Powered by JForum 2.1.7 © JForum Team