How to share a DB Connection in dynamic tRunJob

Highlighted
Seven Stars

How to share a DB Connection in dynamic tRunJob

I get that since tRunJob runs subs jobs in independent processes, you can't use shared DB connection.

Checking "Use or register a shared DB connection" option will not share it.

 

Is there a workaround for this problem?

Community Manager

Re: How to share a DB Connection in dynamic tRunJob

I *think* you might be able to do this if you run your job inside the Talend ESB runtime. You can use connection pooling there. I have only done this with services, but it should behave in the same way. Take a look at this forum post https://community.talend.com/t5/Design-and-Development/setting-up-JDBC-connection-pool-in-Talend-ESB...

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 3

Read about some useful Context Variable ideas

Blog