Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

See also Carte Configuration and the calls to runJob / runTrans

Use-case

Here's Here’s the situation: you need to supply a 3rd party data.  You don't don’t want to spend a lot of time coding web services and what not to deliver the data in a language neutral format.  Anybody can read data from a simple web service.  You can use any programming language and it's it’s easy to test in a browser.

The way that it works arguably couldn't be easier...  Let's couldn’t be easier…  Let’s take a look.

We start with a simple transformation that reads some customer data.  We take the "Read “Read customer data" data” example from the samples:samples/transformations/CSV Input - Reading customer data.ktr
Next, we're we’re going to replace the dummy step with a "Text “Text File Output" Output” step (An "XML Output" or "JSON Output" “XML Output” or “JSON Output” step is also possible):

Save the transformation in the same samples folder under the "Servlet “Servlet Data Example.ktr" ktr” filename.  In my case the full filename is: (from the transformation settings dialog)/home/matt/svn/kettle/trunk/samples/transformations/Servlet Data Example.ktr
Now you can use an instance of Carte that runs on your local host on port 8282 (execute carte.sh 127.0.0.1 8282) to get the data in your browser. 

...