users@glassfish.java.net

Working queue in Glassfish

From: <glassfish_at_javadesktop.org>
Date: Fri, 10 Aug 2007 01:35:56 PDT

Hi all,

I post here to get some advice.
I develop an application on Glassfish v2 that needs to perform regularly (as linux cron does) a lot of operations.
These operations are pretty long, and must be performed by threads.
So, i would like to manage a thread pool and give the threads the work to do via a WorkManager instantiated via the Quartz framework (which is used to perform scheduled task).
My question is : Can I use a thread pool created via the Glassfish Admin console ? If I can, how can I call it from my code and pass work to do ?
Or have I to implement my own thread pool and working queue ?
Thanks for your responses
[Message sent by forum member 'dazzx' (dazzx)]

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