The enterprise bean must not attempt to manage threads. The enterprise bean must not attempt to start, stop, suspend, or resume a thread, or to change a thread�s priority or name. The enterprise bean must not attempt to manage thread groups.
Calling Runtime.exec() is opening a security hole. Why do you need to do this? [ December 12, 2006: Message edited by: Paul Sturrock ]
In the MDB, Runtime javaRuntime = Runtime.getRuntime(); Process p = javaRuntime.exec(jobName ); p.waitFor(); return p.exitValue(); This will call your job which is specified. It will work. But i dont know that it would be a right choice.(Security)