We all know that , we should not use Java Threads in our web applications, but what if , there is a situation where we have to do two or more time consuming tasks simultaneoulsy.
IBM and BEA together has given a solution for this problem 3 years back , i wonder how many of us know this . I came to know about this just 6 months back.
The solution to our concurrency problem in web applications is the WorkManager API. WorkManager API helps us to execute several tasks in parallel with one another.
i am sorry , i havent used the api , so i couldn give a sample code :( But, these links will help you know more about the WorkManager API http://www.java world.com/javaworld/jw-01-2007/jw-01-workmgr.html WorkManager API — JSR 237 http://dev2dev.bea.com/pub/a/20 05/05/parallel_tasks.html