Calling custom Java classes and JAR files in ODI via Jython or Java BeanShell

Published on June 9, 2010

Get our e-books Discover the Oracle Data Integrator 11g Repository Data Model and Oracle Data Integrator Snippets and Recipes
First we create a simple Java class that creates and writes to a text file and save it as

Next we compile the .java class from the command line

Next we create a .jar file from the class

We then copy and paste the .jar archive to the ODI drivers folder
Next we restart the ODI agent.
We can now call methods in this class from either Jython

or we can call it from the Java BeanShell

If you want to master scripting in ODI get the following books.

Java BeanShell

Scripting in Java: Languages, Frameworks, and Patterns


The Definitive Guide to Jython: Python for the Java Platform.
Jython Essentials (O’Reilly Scripting)