Hello
There are two ways can achieve your request:
1)Check 'Exit the jvm immediately' option on tDie component, the Job B will aslo stop once the jvm exits(see pic1), but it will brings an nagative impact, when you export the job and deploy it to tomcat as web Service, it will aslo stop the tomcat server once the jvm exits.
2)Don't use tDie component and write java code on tJava to stop the thread of Job B, see pic 2-4.
code on tJava_2
Thread thread = (Thread)globalMap.get("thread2");
thread.stop();
runningThreadCount.add(-1);
code on tJavaFlex_1
globalMap.put("thread2", Thread.currentThread());
Best regards
shong