tc-config.xml (Client)
 
 001:  <?xml version="1.0" encoding="UTF-8"?>
 002:  <!--
 003:  
 004:    All content copyright (c) 2003-2008 Terracotta, Inc.,
 005:    except as may otherwise be noted in a separate copyright notice.
 006:    All rights reserved.
 007:  
 008:  -->
 009:  <tc:tc-config xmlns:tc="http://www.terracotta.org/config"
 010:    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 011:    xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-4.xsd">
 012:    <!-- Server is colocated with client and DSO is listening on
 013:         default port (9510). -->
 014:    <servers>
 015:      <server host="%i" name="sample"/>
 016:      <update-check>
 017:        <enabled>true</enabled>
 018:      </update-check>
 019:    </servers>
 020:  
 021:    <!-- Tell DSO where to put the generated client logs
 022:         See the Terracotta Configuration Guide and Reference for additional
 023:         information. -->
 024:    <clients>
 025:      <logs>terracotta/client-logs/spring/events/%D</logs>
 026:      <statistics>terracotta/client-statistics/spring/events/%D</statistics>
 027:    </clients>
 028:  
 029:    <application>
 030:      <!-- See the Terracotta Spring Guide for more details of the the <spring/> 
 031:           section of the tc-config file -->
 032:      <spring>
 033:        <!-- Tell DSO about the webapp we're sharing; the name attribute
 034:             typically correspond to the name of the WAR file that you use -->
 035:        <jee-application name="events">
 036:          <application-contexts>
 037:            <application-context>
 038:              <!-- Tell DSO the location of the bean definition file for this 
 039:                   application context -->
 040:              <paths>
 041:                <path>*/applicationContext.xml</path>
 042:              </paths>
 043:              <!-- Tell DSO which events are distributed; Distributed events occur 
 044:                   across all instances of the application no matter which node/context 
 045:                   originated the event -->
 046:              <distributed-events>
 047:                <distributed-event>demo.events.MessageEvent</distributed-event>
 048:              </distributed-events>
 049:            </application-context>
 050:          </application-contexts>
 051:        </jee-application>
 052:      </spring>
 053:    </application>
 054:  </tc:tc-config>