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 >

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

Re: run thread from servlet

2017-07-18 Thread Mark Thomas
ip.bhattacha...@gmail.com] > Sent: Tuesday, July 18, 2017 9:10 AM > To: Tomcat Users List <users@tomcat.apache.org> > Subject: Re: run thread from servlet > > Hello, > I hope I understood the requirement correctly. I believe you can start > EmailProcess thread by t

RE: run thread from servlet

2017-07-18 Thread Campbell, Lance
PM To: Tomcat Users List <users@tomcat.apache.org> 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 se

RE: run thread from servlet

2017-07-18 Thread Campbell, Lance
, 2017 9:10 AM To: Tomcat Users List <users@tomcat.apache.org> 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 th

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