Skip to content

Instantly share code, notes, and snippets.

@terrancesnyder
Created July 6, 2011 16:07
Show Gist options
  • Save terrancesnyder/1067623 to your computer and use it in GitHub Desktop.
Save terrancesnyder/1067623 to your computer and use it in GitHub Desktop.
Pentaho with JNDI connections
I know how to run the transformations or jobs based JNDI for Pan or Kitchen. You should set some properties in order that Pan or Kitchen can know the informations of the JNDI. They are as follows,
1.java.naming.factory.initial. For example, "org.osjava.sj.SimpleContextFactory".
2.org.osjava.sj.root. For example, "D:/pentaho/pentaho1.53/kettle250/simple-jndi".
3.org.osjava.sj.delimiter. For example, "/".
Therefore, I change some codes in the Pan.bat or Kitchen.bat.
set OPT=-Xmx512M -cp %CLASSPATH% -Djava.library.path=libswt\win32\ -DKETTLE_HOME="%
KETTLE_HOME%" -DKETTLE_REPOSITORY="%KETTLE_REPOSITORY%" -DKETTLE_USER="%KETTLE_USER%" -
DKETTLE_PASSWORD="%KETTLE_PASSWORD%"
-Djava.naming.factory.initial="org.osjava.sj.SimpleContextFactory" -Dorg.osjava.sj.root="D:/pentaho/pentaho1.53/kettle250/simple-jndi" -Dorg.osjava.sj.delimiter="/"
Then everything is ok.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment