Re: [Stripes-users] Stripes-users Digest, Vol 113, Issue 4

2016-01-26 Thread VANKEISBELCK Remi
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.

Re: [Stripes-users] Flushing a writer before the ActionBean has completed

2016-01-26 Thread Ron King
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, <

[Stripes-users] Using an executor with Stripes, on Tomcat 8

2016-01-26 Thread Ron King
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

Re: [Stripes-users] Using an executor with Stripes, on Tomcat 8

2016-01-26 Thread VANKEISBELCK Remi
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