如何在 Talend 中与 joblet 共享数据库连接 [英] How to share a database connection with a joblet in Talend

查看:29
本文介绍了如何在 Talend 中与 joblet 共享数据库连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有 tMSSqlConnection 设置的作业,我需要与一个作业共享该连接.我在网上找的说明说把它注册为共享连接,然后在joblet组件的动态设置中添加一个具有该连接名称的选项,这样它就可以从连接的组件列表中选择.但是,当我尝试这样做时,Java 会抱怨.

I have a job with a tMSSqlConnection setup, and I need to share that connection with a joblet. I found instructions online saying to register it as a shared connection, and then add an option in dynamic settings of the joblet components with that connection name, so it can be selected from the component list of connections. However Java is complaining when I try to do this.

如果我不尝试共享连接,job + joblet 工作正常.

The job + joblet works fine if I do not try to share the connection.

推荐答案

我发现你需要在joblet里放一个pre-job然后连接tMSSQLconnection,然后使用share或者注册一个连接,如UmeshR提及.但我缺少的是,你可以在工作岗位上放置一份预工作.

I figured out that you need to put a pre-job in the joblet and then connect the tMSSQLconnection, and then use the share or register a connection, as UmeshR mentioned. But the thing I was missing was that you CAN put a pre-job in a joblet.

这篇关于如何在 Talend 中与 joblet 共享数据库连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆