I've started doing this:

        $self->{req}{echo_request} = POE::Request->new(
            stage     => POE::Stage::Echoer->new(),  # <== create stage on the 
fly
            method    => "echo",
            on_echo   => "got_echo",
            args      => {
                message => "request " . $self->{req}{i},
            },
        );

I don't store the stage anywhere, I just keep the request, since this is what I 
actually care about.

Is there a contra-indication to this?



Reply via email to