TA Enhanced Example

As it was mentioned before you can inject TA awareness in your persistent classes without modifying their original code. In the current scenario this means: These tasks can be fulfilled in the classes bytecode by using Enhancement Tools.

TA Enhancement In Java 

TA can be enabled by bytecode injection of the above-mentioned code into the persistent classes when they are loaded or built. (Currently persistent classes have to be "tagged" by providing an appropriate ClassFilter instance.) In addition to this db4o also explicitly needs to be configured to use the Transparent Activation instrumentation of the persistent classes (TransparentActivationSupport).

Transparent Activation functionality requires the following jars:

  • bloat-1.0.jar
  • db4o-x.x-tools.jar
  • db4o-x.x-taj.jar
  • db4o-x.x-instrumentation.jar

The following topics explain how TA enhancement can be applied to built classes: