自己写个webService服务端,让客户调用,客户调用后生成一个格式文件,再叫Kettle执行job,操作这个文件。
于是思路如下
webservice:
@Override
public void saveUser( User user) {
//生成txt文件
FileUtil.test(user);
//调用kettle
String s = "cmd /c start D:\\pdi-ce-9.0.0.0-423\\data-integration\\pan.bat -rep=local -user=admin -pass=123456 -trans=test -dir=/";
Process ps = null;
try {
ps = Runtime.getRuntime().exec(s);
} catch (IOException e) {