is there a way to embed this at a certain point within a jsp, or do i
have to call a precompiled class which uses the technique below?

thanks!

Warren Crossing wrote:
> 
> hey,
> 
> theres no ultimatley easy way.. but thank duke for inner classes.. so you
> can..
> 
>                         new Thread () {
>                                 public void run () {
>                                         boolean warren_rulz = true;
>                                         do {
>                                                 try {
>                                                         sleep (5 * 60 *
> 1000);
>                                                 } catch (Exception e) {
>                                                 }
>                                                 System.out.println ("warren
> rulz " + warren_rulz );
>                                         } while (warren_rulz == true);
>                                 }
>                         }.start ();
> 
> sorry about the ego code..  but its actually from a production codebase.
> -----Original Message-----
> From: Kris Gonzalez [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 6 April 2001 2:44 PM
> To: [EMAIL PROTECTED]
> Subject: simple way to spawn new threads in jsp?
> 
> is there a special mechanism to execute a sequence of tasks on a new
> thread in Tomcat or do i have to do it the old fashioned way, creating a
> class that spawns a new thread to do those tasks and referencing it in
> the jsp?
> 
> thanks!

Reply via email to