Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Terracotta

Silvan Vogelsanger
1 decade ago Oct 06, 2009 3:19pm
Joonas Lehtinen
1 decade ago Oct 06, 2009 4:34pm
Petri Hakala
1 decade ago Oct 12, 2009 12:01pm

I got this working with my demo application. I'm using Terracotta 3.1. Probably you will face problems because there is classes that doesn't work like BeanItemContainer etc. Probably all classes that have there own serialization method will not work.

Here is my tc-config.xml:

<?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/config http://www.terracotta.org/schema/terracotta-4.xsd">
	<servers>
		<server name="localhost" host="localhost">
			<dso-port>9510</dso-port>
			<jmx-port>9520</jmx-port>
			<data>target/terracotta/server/data</data>
			<logs>target/terracotta/server/logs</logs>
			<statistics>target/terracotta/server/statistics</statistics>
		</server>
	</servers>
	<clients>
		<logs>target/terracotta/clients/logs/%(tc.nodeName)</logs>
		<statistics>target/terracotta/clients/statistics/%(tc.nodeName)</statistics>

		<modules>
			<module name="tim-jetty-6.1" version="2.0.0" />
			<module name="tim-annotations" version="1.4.0" />
			<module name="tim-spring-security-2.0" version="1.2.0" />
		</modules>
	</clients>
	<application>
		<dso>
			<app-groups>
				<app-group name="foo-group">
					<web-application>test</web-application>
				</app-group>
			</app-groups>
			<instrumented-classes>
				<include>
					<class-expression>com.vaadin..*</class-expression>
					<honor-transient>false</honor-transient>
				</include>
				<include>
					<class-expression>test.FooApplication</class-expression>
					<honor-transient>true</honor-transient>
				</include>
				<include>
					<class-expression>test.Foo</class-expression>
					<honor-transient>true</honor-transient>
				</include>				
				<include>
					<class-expression>org.springframework.security.AccessDeniedException</class-expression>
				</include>
			</instrumented-classes>
			<additional-boot-jar-classes>
				<include>java.util.Locale</include>
				<include>java.beans.FeatureDescriptor</include>
				<include>java.beans.PropertyDescriptor</include>
				<include>java.lang.NullPointerException</include>
			</additional-boot-jar-classes>
			<web-applications>
				<web-application>test</web-application>
			</web-applications>
		</dso>
	</application>
</tc:tc-config>
Silvan Vogelsanger
1 decade ago Jan 14, 2010 9:28am