This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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)