[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]
Terracotta express (standard) with Spring webflow and Spring security  XML
Forum Index -> Terracotta for Spring
Author Message
dominus

neo

Joined: 01/25/2012 05:09:22
Messages: 9
Offline

Hi Dear Terracotta forum,

In short:
____________________________________________________________________
My question is: How should configuration for clustering Spring WebFlow/Security for Terracotta Express look like? (We have problems with finding documentation/examples/anything).
____________________________________________________________________

A little bit longer:
____________________________________________________________________
It seems that this question is still unanswered (see http://forums.terracotta.org/forums/posts/list/6143.page), so I will repeat it. We need this reply desperately...

1. SpringWebFlow issues: when I am taking down one server on which one user was inside a flow (spring web flow) and after the other server will take over, the user will get an exception after next request inside in a flow (first one which is going to the second server). Which looks like that spring-web-flow is not clustered.

2. SpringSecurity issues: it seems that SessionRegistry is not clustered. With only one server it is impossible to log in to our application from two different browsers (one of the sessions will be invalidated). But when running two nodes, it is sometimes possible to do that -> Probably SessioRegistry on first node knows nothing about the SessionRegistry on the other instance. Which implies that Security related beans are not clustered.

My questions are:
1. How should configuration for clustering Spring WebFlow/Security for Terracotta Express look like?
2. How can we verify that Spring bean are clustered? Can we user Terracotta Developer console to do that?
3. Where can I find any working example (or documentation) of clustering Spring based application for Terracotta Express (Standard). The only resource I could find was this:
http://docs.terracotta.org/confluence/display/docs35/Clustering+the+Spring+Framework
but this is related to Terracotta DSO which we are not using.
4. Is it possible to enable some debugging information in Terracotta which will show me what modules are enabled and what is actually clustered?
____________________________________________________________________

Any input and ideas are welcome!

Best regards
Marek Dominiak
dominus

neo

Joined: 01/25/2012 05:09:22
Messages: 9
Offline

Some additional information:

We are using:
- Terracotta 3.5.4 (Express)
- Spring 3.1.0
- Spring Security 3.1.0
- Spring WebFlow 2.3.0
- Tomcat 6.0.35 (two nodes)

As we understand, Terracotta Express does not need any additional configuration (enabling TIM-modules, adding configuration related to DSO) to enable clustering of SpringSecurity/SpringWebFlow. Is that correct?

Terracotta config:
Code:
 <?xml version="1.0" encoding="UTF-8"?>
 <tc:tc-config xmlns:tc="http://www.terracotta.org/config"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-4.xsd">
 
 <tc-properties>
     <property name="l2.db.factory.name" value="com.tc.objectserver.storage.derby.DerbyDBFactory" />
 
     <!-- Terracotta Server (L1) -> Terracotta Client (L2) -->
     <property name="l1.healthcheck.l2.ping.enabled" value="true" />
     <property name="l1.healthcheck.l2.ping.idletime" value="5000" />
     <property name="l1.healthcheck.l2.ping.interval" value="1000" />
     <property name="l1.healthcheck.l2.ping.probes" value="3" />
     <property name="l1.healthcheck.l2.socketConnect" value="true" />
     <property name="l1.healthcheck.l2.socketConnectTimeout" value="5" />
     <property name="l1.healthcheck.l2.socketConnectCount" value="10" />
 
     <!-- Terracotta Client (L2) -> Terracotta Server (L1) -->
     <property name="l2.healthcheck.l1.ping.enabled" value="true" />
     <property name="l2.healthcheck.l1.ping.idletime" value="5000" />
     <property name="l2.healthcheck.l1.ping.interval" value="1000" />
     <property name="l2.healthcheck.l1.ping.probes" value="3" />
     <property name="l2.healthcheck.l1.socketConnect" value="true" />
     <property name="l2.healthcheck.l1.socketConnectTimeout" value="5" />
     <property name="l2.healthcheck.l1.socketConnectCount" value="10" />
 </tc-properties>
 
   <system>
     <configuration-model>production</configuration-model>
   </system>
   <servers>
    <server name="localhost" host="localhost">
       <data>%(user.home)/terracotta35/server-data</data>
       <logs>%(user.home)/terracotta35/server-logs</logs>
       <statistics>%(user.home)/terracotta35/server-statistics</statistics>
       <dso-port>9510</dso-port>
       <jmx-port>9520</jmx-port>
       <index>%(user.home)/terracotta35/server-data/index</index>
       <dso>
        <client-reconnect-window>120</client-reconnect-window>
         <persistence>
           <mode>temporary-swap-only</mode>
         </persistence>
         <garbage-collection>
           <enabled>true</enabled>
           <verbose>false</verbose>
           <interval>3600</interval>
         </garbage-collection>
       </dso>
     </server>
 </servers>
   <clients>
     <logs>%(user.home)/terracotta35/client-logs%D</logs>
   </clients>
   <application>
     <dso>
       <web-applications>
         <web-application>webapp</web-application>
       </web-applications>
      </dso>
   </application>
 </tc:tc-config>
 




Regards
Marek Dominiak
gyan10

ophanim

Joined: 06/28/2011 23:15:25
Messages: 701
Offline

Hi Dominiak,

article in below links explains step by step to configure Terracotta and webflow.There is a working example. You can try out that and compare your config setting with example. Yes, Express mode do not need any addition TIM.
http://www.infoq.com/articles/spring-web-flow-terracotta

hope this will help. If not, please provide all your configs.

Cheers!!!

Gyan Awasthi
Terracotta -A Software AG company
 
Forum Index -> Terracotta for Spring
Go to:   
Powered by JForum 2.1.7 © JForum Team