Re: run thread from servlet

2017-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lance, On 7/19/17 7:35 AM, Campbell, Lance wrote: > Thanks for your information. So when I have a process that I want > to run as a thread I would assume I need to implement the > interface ServletContextListener. I would also assume that the > s

RE: run thread from servlet

2017-07-19 Thread Campbell, Lance
, July 18, 2017 4:30 PM To: users@tomcat.apache.org Subject: Re: run thread from servlet -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lance, On 7/18/17 9:56 AM, Campbell, Lance wrote: > Tomcat 8.0.x Question: I am wanting to know the proper way to start a > thread from a servlet. > >

Re: run thread from servlet

2017-07-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lance, On 7/18/17 9:56 AM, Campbell, Lance wrote: > Tomcat 8.0.x Question: I am wanting to know the proper way to start > a thread from a servlet. > > Use Case: A batch process will call a URL that is a servlet. The > servlet will call a processes

Re: run thread from servlet

2017-07-18 Thread Mark Thomas
oes. > Is this where you were referring to the servlet context listener? Yes. That is a good way to start/stop threads. > > -Original Message- > From: Campbell, Lance [mailto:la...@illinois.edu] > Sent: Tuesday, July 18, 2017 12:00 PM > To: Tomcat Users List >

RE: run thread from servlet

2017-07-18 Thread Campbell, Lance
PM To: Tomcat Users List Subject: RE: run thread from servlet Basically I have batch jobs that I need to run on many different web applications. The batch jobs call servlets that then create threads to do whatever task I need done behind the scenes. The servlets immediately return a message

RE: run thread from servlet

2017-07-18 Thread Campbell, Lance
, 2017 9:10 AM To: Tomcat Users List Subject: Re: run thread from servlet Hello, I hope I understood the requirement correctly. I believe you can start EmailProcess thread by the context listener. This thread can wait on an object. And the servlet can enque the data in a concurrent queue, and then

RE: run thread from servlet

2017-07-18 Thread Tran, Dung Minh
queue data thread ? Thanks, Tom From: Pradip Bhattacharya [pradip.bhattacha...@gmail.com] Sent: Tuesday, July 18, 2017 10:09 AM To: Tomcat Users List Subject: Re: run thread from servlet Hello, I hope I understood the requirement correctly. I believe you

Re: run thread from servlet

2017-07-18 Thread Pradip Bhattacharya
Hello, I hope I understood the requirement correctly. I believe you can start EmailProcess thread by the context listener. This thread can wait on an object. And the servlet can enque the data in a concurrent queue, and then notify the object, on which EmailProcess thread is waiting. Is this EmailP

run thread from servlet

2017-07-18 Thread Campbell, Lance
Tomcat 8.0.x Question: I am wanting to know the proper way to start a thread from a servlet. Use Case: A batch process will call a URL that is a servlet. The servlet will call a processes that will trigger a thread to run to do a particular job. The thread will run for a while. The servlet wi