楔子
学习笔记,学习的过程中发现一个不错的demo。感觉不错
地址
JOB调用 https://www.javatips.net/api/org.pentaho.di.job.job
转换调用 https://www.javatips.net/api/org.pentaho.di.trans.Trans
JINDI设置
看源码发现的设置JNDI的方式
/**
* kettle_home是在 设定目录下面的.kettle文件夹
*/
public static void initKettleHome(String confFile) {
String ketPropFile = RunningJobs.class.getClassLoader().getResource(confFile).getFile();
// TODO JNDIhome
System.getProperties().put("KETTLE_JNDI_ROOT", ketPropFile + "/simple-jndi");
System.getProperties().put("KETTLE_HOME", ketPropFile);
}