【问题标题】:Talend ESB - Error deploying OSGI Buldle job to KarafTalend ESB - 将 OSGI Budle 作业部署到 Karaf 时出错
【发布时间】:2018-02-13 15:57:55
【问题描述】:

我在 Talend ESB 中有这个项目:

  • 1 主要 JOB 公开 tRESTfull 方法收集参数并传递给 n°3 子作业
  • 3个子作业根据参数执行任务

在 Talend Studio 中一切正常,但是当我尝试将主要 JOB (1) 导出为 Karaf 的 OSGI Bundle 时,我收到以下错误:

 Exception in component tRunJob_1 (Karaf_global_service)
java.lang.RuntimeException: Child job returns 1. It doesn't terminate normally.
Error: Could not find or load main class local_project.esb_fb_post_0_1.ESB_fb_post

这是主要的 JOB 配置:

有什么想法/建议吗?由于构建过程完全自动化,如何手动添加子作业?

谢谢

注册

【问题讨论】:

    标签: talend karaf


    【解决方案1】:

    经过一些研究,我发现运行时 (Karaf) 不支持动态作业功能:因此,对于开源版,您需要采用一些解决方法。 我确实创建了 3 个单独的 RunIF 链接来调用子作业:以这种方式正确传递了 Karaf accep 部署和参数:

    RunIF 链接的语法:

    globalMap.get("command")!=null && ((String)globalMap.get("command")).equals("SUBJOB_name")
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-13
      • 2021-12-15
      • 2013-12-27
      • 1970-01-01
      • 2019-05-22
      • 1970-01-01
      相关资源
      最近更新 更多