users@glassfish.java.net

EJB 3.1, _at_Asynchronous and thread pool

From: <glassfish_at_javadesktop.org>
Date: Tue, 05 Jan 2010 15:52:30 PST

Hi,

Since EJB 3.1, there is a new annotation @Asynchronous. Unfortunately there is no parameter to define the max pool size of threads.

By default there are only 3 threads handling @Asynchronous method (Ejb-Async-Thread-1, Ejb-Async-Thread-2, Ejb-Async-Thread-3).

How can I increase the pool size? Should I refactor the source code and create MDB instread?

Regards,
Alexandre
[Message sent by forum member 'alesque' (agarino_at_hotmail.com)]

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