users@glassfish.java.net

ExecutorService in Glassfish ?

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Sat, 21 Nov 2009 12:10:34 +0100

I have this application that should notify several external services
(twitter, etc..) .. and I am thinking of using Future tasks for that..

what means:

myCode() {
  // do business here
  // push future threads in a pool
  // respond to the client while the future tasks run out there...
}

I don't care about the results of the future tasks, if a notification
to twitter fails for example it doesn't matter for my business....

So, I was wondering if Glassfish gives me such a thread pool ..
(instead of my application to create it all the time....)

------------------------------------------
   Felipe Gaścho
   10+ Java Programmer
   CEJUG Senior Adviser