users@glassfish.java.net

Re: Parallel execution task - Design question

From: <glassfish_at_javadesktop.org>
Date: Thu, 14 Feb 2008 08:52:30 PST

Hi Frank,

The best way to achieve this asynchrony right now is to use JMS and message-driven beans. You can send one message for each sub-task. It's up to you whether you create one message-driven bean component that knows how to handle all kinds of tasks or multiple message-driven bean components, but regardless of that decision each message you send will be processed in parallel.

It doesn't help you right now but as an f.y.i. we're planning to add better support for this kind of asynchrony directly to the session bean programming model in EJB 3.1 (http://jcp.org/en/jsr/detail?id=318)

 --ken
[Message sent by forum member 'ksak' (ksak)]

http://forums.java.net/jive/thread.jspa?messageID=258986