-
Parallel/Asynchroneous Processing (3 messages)
- Posted by: palchuri palchuri
- Posted on: December 08 2007 12:13 EST
In our application, an user can have access to mulitple accounts(100 accounts). We have a requirement to process a task for group of accounts. That task might take 5 -10 secs for each user. Currently we are acheiving it by doing one by one. By increasing the number of users might put application in jeopardy. Is there any API in java which supports by taking multiple requests at a time and process it parallely like threading. Thanks ShriThreaded Messages (3)
- Parallel/Asynchroneous Processing in J2EE by lior ben zeev on December 11 2007 01:19 EST
- Re: Parallel/Asynchroneous Processing in J2EE by Senthil Balakrishnan on December 19 2007 17:52 EST
- Re: Parallel/Asynchroneous Processing by Kailash Vasani on December 27 2007 06:00 EST
-
Parallel/Asynchroneous Processing in J2EE[ Go to top ]
- Posted by: lior ben zeev
- Posted on: December 11 2007 01:19 EST
- in response to palchuri palchuri
Hi Shri Yes there is Parallel/Asynchroneous Processing in J2EE it is called JMS you can use it to send async messages to queue or either to send async messages to topic bases on publich/subscribe mechanism. You can use this link to implement a light framework above JMS which simplify the use of JMS: http://j2ee-now.blogspot.com/2007/12/jms-helper.html -
Re: Parallel/Asynchroneous Processing in J2EE[ Go to top ]
- Posted by: Senthil Balakrishnan
- Posted on: December 19 2007 17:52 EST
- in response to lior ben zeev
You may want to look into the Executors in java.util.*. This is a simple well managed thread, found it very useful in my previous experience. http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ExecutorService.html Thanks, Senthil Balakrishnan -
Re: Parallel/Asynchroneous Processing[ Go to top ]
- Posted by: Kailash Vasani
- Posted on: December 27 2007 06:00 EST
- in response to palchuri palchuri
Hi Shri, Using Queue in JMS may not result in parallel processing as all accounts would get processed by only one receiver. Using topic would help achieve parallel processing (assuming that all topic listeners are running in their own process), but you need to make sure there is no duplication of processing. Kailash