Java Code Deployment
TM includes a Java deployment interface that can be used by any Java application. The interface can be called with only a few lines of code; a simple process which involves the following fairly universal steps:
- A TMTransformer object is created.
- The TMTransformer object is informed of the sources and targets used by the transform.
- The TMTransformer object opens the sources and targets and connects itself to the generated code in a jar file.
- The transformation is run.
There are 2 fundamental ways that the transformation can be deployed:
Short Lived - Where the transform runs once and is then complete, similar to a batch job.
Long Lived - Where the transform runs and stay active, e.g. reading from a message queue.
An example of a basic short lived deployment can be seen below.
