Hi,
My application flow like below.
jsp->Controller->Action->ModuleSLEJB->SubModuleSLEJB->DAO>>oracleDB
My requirement is when I submit
Jsp with some action , action class calls some business metod of ModuleSLEJB which inturn calles the bussiness method of SubModuleSLEJB which in turn call the actuval implementation method in corresponding DAO class.
what method supposed to do?
It invokes 2 stored procedures with some in params. each procedure takes 10-12 mins to complete its process, once done send mail to user.
> I have to invoke 2 procs paralally within 10 or 12 mins both will complete process.
> upon submit of jsp those 2 procs should get triggered with some in params, control has to return to jsp to show some message like 'procs are invoked you will get report by mail with in 10-15 mins' irrespective of proc state(finished/running state), should not wait till pros coplete execution.
can any one suggest how can I achive that... do i have to use MDBs for that, or do I need to invoke 2 seperate threads?..(using multi threading concept)... what are the pros and cons what could be the best solution for the requirement..
Please share your valuble inputs/suggestions ...
Thanks in advance.
Anantha