Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
We have a job design wherein two tmominput are running in tparralize , with keep listening mode.
Since keep listening is blocking in nature the job control flow stays at tmominput.
Have below scenario to be handled:
- scrnario1 : whenever one of the tmominput parallel job disconnects due to error, need to identify which one got disconnected, apparently its tricky to identify that , tried using another tparrallel thread which gets invoked when one of the two threads fail
scenario2- : whenever one of the tmominput thread fails , explicity disconnect another tmominput thread, tried this with tcommit in the another parallel thread mentioned above but seems disconnecting gets stuck unless there is a message in the tmominput
Note: already tried with dropping a message to tmominput, but exploring if there is a more direct way.
could anyone please advise on this
Hi @Bipin Shakya
I suggest you try the following:
Scenario 1: use a tLogCatcher on your job. The "origin" column of tLogCatcher component will tell the component that resulted in an error.
Scenario 2: connect each tMomInput to a tDie component using OnComponentError Trigger. On tDie component advanced settings, enable the option "Exit the JVM immediately".
Thanks for the response.
I tried implementing as you've advised, had below observations:
Please refer to below snapshot of the sample job for my scenario: