[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]
Messages posted by: jgalang  XML
Profile for jgalang -> Messages posted by jgalang [49] Go to Page: 1, 2, 3, 4 Next 
Author Message
The source files you sent seem incomplete.

In any case, I would suggest that you start first with a very simple console app to grasp how TC works and how to compose a tc-config - before going back to your target application.

Start here:
http://terracotta.org/web/display/orgsite/Tutorials
http://terracotta.org/web/display/orgsite/POJO+Quick+Start

Then check out the POJO samples that come with the TC kit - the JTable sample would be closest to what you are trying to do.


Could you post your tc-config and relevant source files (if possible)?
You might also want to group related configurations into TIMs
Here:

./bin/make-boot-jar.sh --config samples/tc-config.xml

You can also do:

./bin/make-boot-jar.sh --help

- to print the syntax and options available for make-boot-jar
have you tried using tim-ehcache 1.1.3? Or switching to to TC 2.6.4? currently TC for most TIM's are very sensitive, version wise.

tim-ehcache 1.1.3 is for TC 2.6.2, while version 1.1.4 is for TC 2.6.4
See here: http://forge.terracotta.org/releases/catalog.html#tim-ehcache

The next TC release will include a tool to help you manage TIMs
very likely you don't need all those swing classes in the bootjar.

can you post your tc-config and describe a little bit more of what your application + TC is supposed to do?


Here's a thread tackling the same issue: http://forums.terracotta.org/forums/posts/list/15/1299.page

Bottom line, the answer to your question is: No.
Currently there is no way to make inherited fields to act as different roots.

This line is not appear

2008-06-07 18:29:23,208 INFO - Terracotta version 2.6.0, as of 20080427-110443
(Revision 2739 by cruise @rh4mo0 from 2.3)
2008-06-07 18:29:24,451 INFO - Configuration loaded from the file at '/usr/local/terracotta-2.6.1'.
 


Just some clarification: are you saying the "line appears" or the "line DOES NOT appear"?

Also I noticed, it has mentioned TC 2.6.1 - but are you working with TC 2.6.2? Is the 2.6.1 version in the path somewhere and is found before your 2.6.2 installation?

Has anyone run terracotta successfully on FreeBSD 5.3
 


The closest I would say would be TC running on OS X (http://developer.apple.com/opensource/index.html)

To patch your copy of TC to acknowledge FreeBSD take a look at the following classes:

common/src/com/tc/util/VendorVmSignature.java
dso-l1/src/com/tc/object/tools/BootJarSignature.java
dso-l1/tests.unit/com/tc/object/tools/BootJarSignatureTest.java

I've created a JIRA for this, feel free to comment and/or post your patches: http://jira.terracotta.org/jira/browse/CDV-885
I created a feature request JIRA for this:
https://jira.terracotta.org/jira/browse/CDV-884

Sorry I misunderstood. Currently there is no way to have something like:

<locks>
<method-expression>...</method-expression>
<excludes>
<exclude>...</exclude>
</excludes>
</locks>

Would it be possible for you to refactor and rename those methods you wish to exclude from locking?

You can use expressions to specify which fields/methods to lock.
See here: http://rubyurl.com/Y1Bp

can you post your tc-config...?
I'd suggest looking at the sharededitor sample application that comes with the kit.

It's an application that uses Java 2D classes (similar to yours) and it will give you an idea on how to work with TC in the same scenario. One take-away from it is that, it avoids clustering those classes or classes that would pull it in the object graph.

(In addition to Taylor's comment above) a rule of thumb is to cluster only fields that represent states or classes that represent the model portion of your application.

Some small refactoring work might be in your future :)

Does it help you to get going with your project?

BTW, take a look at the pojo sample apps that we bundle in the kit, specially the sharededitor - it was written as-is without TC in mind, to simulate someone writing an app and then discovering TC...

If you have ideas, suggestions, or comments re: sample apps we'd love to hear it.

 
Profile for jgalang -> Messages posted by jgalang [49] Go to Page: 1, 2, 3, 4 Next 
Go to:   
Powered by JForum 2.1.7 © JForum Team