How to implement something like Terracota?

How Terracotta knows that object is changed inside one JVM to propagate this change to another JVM? I.e. how can I code similar behavior?

I want to be able to watch changes in instances of some classes, without changing them at all.

-------------Problems Reply------------

It uses instrumentation. It's explained (in high level) in the terracotta wiki

Shouldn't a observer pattern help. If you implement your class as observable and have an oberver , the observer will be notified when ever the observable class goes through some change.

Category:jvm Views:0 Time:2011-08-18
Tags: jvm terracotta

Related post

  • Implementing an online ordering system for a restaurant/cafe 2008-08-07

    I would like to implement an online ordering system for restaurants. I am starting to research this a bit, and wanted to throw it out here. Is there any open source projects already started out there I could work with and contribute to? Would it be e

  • Anyone out there implement(ing) microformats? is this useful? 2008-08-08

    I've seen the MF people talk and have heard my own fair share of MF evangelism, yet haven't done anything about it fearing the gains aren't really worth the hassle. Does anyone use this? BTW, from their website: "microformats are a set of simple, ope

  • What client(s) should be targeted in implementing an ICalendar export for events? 2008-08-08 I'm working to implement an export feature for events. The link above lists tons of clients that support the ICalendar standard, but the "three big ones" I can see are Apple's iCal, Microsoft's Outlook, and Goog

  • How to implement continuations? 2008-08-09

    I'm working on a Scheme interpreter written in C. Currently it uses the C runtime stack as its own stack, which is presenting a minor problem with implementing continuations. My current solution is manual copying of the C stack to the heap then copyi

  • Best implementation for Key Value Pair Data Structure? 2008-08-12

    So I've been poking around with C# a bit lately, and all the Generic Collections have me a little confused. Say I wanted to represent a data structure where the head of a tree was a key value pair, and then there is one optional list of key value pai

  • How do I implement a Linked List in Java? 2008-08-13

    What's the best way to make a linked list in Java? --------------Solutions------------- The obvious solution to developers familiar to Java is to use the LinkedList class already provided in java.util. Say, however, you wanted to make your own implem

  • Python Regular Expressions to implement string unescaping 2008-08-17

    I'm trying to implement string unescaping with Python regex and backreferences, and it doesn't seem to want to work very well. I'm sure it's something I'm doing wrong but I can't figure out what... >>> import re >>> mystring = r"Thi

  • How would you implement FORM based authentication without a backing database? 2008-08-20

    I have a PHP script that runs as a CGI program and the HTTP Authenticate header gets eaten and spit out. So I would like to implement some kind of FORM based authentication. As an added constraint, there is no database so no session data can be store

  • Will server-side JavaScript take off? Which implementation is most stable? 2008-08-20

    Does anyone see server-side JavaScript taking off? There are a couple of implementations out there, but it all seems to be a bit of a stretch (as in, "doing it BECAUSE WE CAN" type of attitude). I'm curious to know if anyone actually writes JavaScrip

  • How to find an implementation of a C# interface in the current assembly with a specific name? 2008-08-21

    I have an Interface called IStep that can do some computation (See "Execution in the Kingdom of Nouns"). At runtime, I want to select the appropriate implementation by class name. // use like this: IStep step = GetStep(sName); --------------Solutions

  • Implementing a log watcher 2008-08-22

    I wondering how in C/C++ you can implement a program (similar to tail -f) that watches for new lines added to a log file and then process them? --------------Solutions------------- You can use fseek() to clear the eof condition on the stream. Essenti

  • How would you implement a hashtable in language x? 2008-08-24

    The point of this question is to collect a list of examples of hashtable implementations using arrays in different languages. It would also be nice if someone could throw in a pretty detailed overview of how they work, and what is happening with each

  • Most efficient implementation of a large number class 2008-08-25

    When doing calculations on very large numbers where integral data types such as double or int64 falls short, a separate class to handle such large numbers may be needed. Does anyone care to offer an efficient algorithm on how best to do this? -------

  • Getting all types that implement an interface 2008-08-25

    Using reflection, how can I get all types that implement an interface with C# 3.0/.NET 3.5 with the least code, and minimizing iterations? This is what I want to re-write: foreach (Type t in this.GetType().Assembly.GetTypes()) if (t is IMyInterface)

  • How can you require a constructor with no parameters for types implementing an interface? 2008-08-25

    Is there a way? I need all types that implement a specific interface to have a parameterless constructor, can it be done? I am developing the base code for other developers in my company to use in a specific project. There's a proccess which will cre

  • How does one implement FxCop / static analysis on an existing code base 2008-08-25

    What are some of the strategies that are used when implementing FxCop / static analysis on existing code bases with existing violations? How can one most effectively reduce the static analysis violations? --------------Solutions------------- Make lib

  • Generic IBindingListView Implementations 2008-08-26

    Can anyone suggest a good implementation of a generic collection class that implements the IBindingListView & IBindingList interfaces and provides Filtering and Searching capabilities? I see my current options as: Using a class that someone else

  • What do I need to do to implement an "out of proc" COM server in C#? 2008-08-27

    I am trying to implement an "out of proc" COM server written in C#. How do I do this? I need the C# code to be "out of proc" from my main C++ application, because I cannot load the .NET runtime into my main process space (WHY?: My C++ code is in a DL

  • In C#, isn't the observer pattern already implemented using Events? 2008-08-28

    After reading the Head First Design Patterns book and using a number of other design patterns, I'm trying to understand the Observer pattern. Isn't this already implemented using Events in the .NET Framework? --------------Solutions------------- Yes,

Copyright (C), All Rights Reserved.

processed in 0.085 (s). 11 q(s)