Database shared connection between parent job and dynamic sub-job
Hello, I'm using TOS DI 5.1.1 and i'm facing difficulties to use database shared connection between a parent job and a dynamic sub-job using postgres. When i replace cal to the dynamic sub-job by a simple sub-job, the shared connection work fine : commit done in parent job save changes done in the sub-sob into the database. But when i replace the call to the sub-job by a dynamic job, the commit does not save changes any more. Is there a way to share database connection (and managed transaction) between a parent job and sub-job calling dynamicaly or is this functionnality not available for dynamical job ?
Re: Database shared connection between parent job and dynamic sub-job
Hi Philippe That's because when you select the 'use dynamic job' feature, the child job will start a new JVM thread which doesn't share the same memory with the main job. It means when using 'Use dynamic job', you cannot use the "shared connection" feature at the same time. Regards, Pedro