Hi Ron,
Sending an email at the end of the task is even easier : you don't need
polling at all !
Simply submit a runnable with your webservice call and response handling
(send the email) to an ExecutorService from the action. This is "fire and
forget" : submission to the executor doesn't block.
Thanks Remi, I'll give this some thought, this helps a lot.
Also, I did come up with a way to prompt the user at the beginning of the
submission.
I pop up a jquery-ui dialog box, instead of trying to use the response
writer
to write a new page.
On Tue, Jan 26, 2016 at 2:15 AM, <
Remi, from some of my reading, I'm getting the impression
that one should be careful when using threads inside of a
servlet container. How do you do this, can you elaborate?
On Tue, Jan 26, 2016 at 9:23 AM, <
stripes-users-requ...@lists.sourceforge.net> wrote:
> Send Stripes-users mailing list
No there's no issue using an ExecutorService inside a container. Most
frameworks use their own thread pools today.
Just create it in an init context listener or something like this, and
shutdown it properly when the app closes.
Cheers
RĂ©mi
2016-01-26 17:23 GMT+01:00 Ron King