|
Jetty example source code file (tc-config-jetty.xml)
The Jetty tc-config-jetty.xml source code
<?xml version="1.0" encoding="UTF-8"?>
<!--
All content copyright (c) 2003-2006 Terracotta, Inc.,
except as may otherwise be noted in a separate copyright notice.
All rights reserved.
-->
<!-- This is a Terracotta configuration file that has been pre-configured
for use with Jetty
For more information, please see the product documentation -->
<tc:tc-config xmlns:tc="http://www.terracotta.org/config">
<!-- Tell DSO where the Terracotta server can be found;
See the Terracotta DSO Guide for additional information. -->
<servers>
<server name="localhost">
<data>%(user.home)/terracotta/server-data
<logs>%(user.home)/terracotta/server-logs
</server>
</servers>
<!-- Tell DSO where to put the generated client logs
See the Terracotta DSO Guide for additional information. -->
<clients>
<logs>%(user.home)/terracotta/client-logs
<modules>
<module name="modules-common-1.0" version="1.0.0"/>
<module name="clustered-jetty-6.1" version="1.0.0"/>
<module name="clustered-apache-struts-1.1" version="1.1.0"/>
<module name="jetty-terracotta-session" version="6.1.5"/>
</modules>
</clients>
<application>
<dso>
<!-- Our app requires these custom objects/classes to be shared - the following declarations
tells DSO which ones they are. When the app runs under DSO, instances of these classes
will broadcast changes in their state.
A good idiom when writing an app that you intend to cluster via TC DSO, is to group the
classes you wish to share under a single package (although if you follow the MVC pattern
this tends to happen naturally) - this way the list of classes you wish to instrument
can be concise -->
<instrumented-classes>
<include>
<class-expression>demo..*
</include>
<include>
<class-expression>org.apache.struts..*
</include>
<include>
<class-expression>org.apache.commons.beanutils..*
</include>
</instrumented-classes>
<roots>
<root>
<field-name>demo.townsend.service.ProductCatalog.catalog
<root-name>ProductCatalog
</root>
</roots>
</dso>
</application>
</tc:tc-config>
Other Jetty examples (source code examples)Here is a short list of links related to this Jetty tc-config-jetty.xml source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.