a new Thread .In the EJB after starting the thread i have written
Thread th=new Thread(new SomeJob());
if the thread executes normally ( i mean their is no problem in the Thread) in this case , My EJB code waits for the
thread to finish till the specified time interval in milli seconds and after that
EJB code executes which fulfills my requirement.
But the problem is if the thread executes above the configured StuckThreadMaxTime(600sec), then weblogic throws an ecxception but code in the EJB is not executed even though it should because thead is no more.
Don't know what's going on???
please give some inputs on this
If application components contain the same functionality
provided by J2EE system infrastructure, there are clashes and mis-management of the functionality.
For example, if enterprise beans were allowed to manage threads, the J2EE
platform could not manage the life cycle of the enterprise beans, and it could not properly manage transactions.
J2EE 1.4 Specification section 6.2.1 Programming Restrictions
The usual way to handle a long-running process in a web application is to return a message to the user immediately and hand the request off to a non-web client. Once the request has been processed, the non-web client can inform the user the results are available via email.
Hope i am able to elaborate the case.
please give some inputs