users@grizzly.java.net

Re: Async or not async, this is the problem

From: rama <rama.rama_at_tiscali.it>
Date: Wed, 17 Dec 2008 00:29:12 +0100

> So you will eventually call resume, right?
>

actually on example, resume is called

>> static class FakeSession extends Thread {
>> protected GrizzlyResponse res;
>> private static FakeSession fake = new FakeSession();
>> public void run() {
>> try {
>> System.out.println("START");
>> Thread.sleep(1000);
>> } catch (InterruptedException e) {
>> // TODO Auto-generated catch block
>> e.printStackTrace();
>> }
>> res.resume(); ---> HEY I AM A RESUME
>> }


> Call resume() and it will be executed.
>

i see the System.out (this means that resume is correctly issued)

>
> System.out.println("RESUME"); ----> GOT
>

but no output is show on browser :D