users@grizzly.java.net

Re: Comet issue with Sailfin

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 14 Oct 2008 10:52:01 -0400

Salut,



> Hi Jean,
>
> I have been trying Comet several times in my sailfin environment... what
> I am trying is to push messages (received from a SIP remote entity) from
> the server to the http client. I am following the steps of your
> "counter" example... but somehow, my asynchronous events are not
> notified back to the http client... I see in my logs that the onEvent
> methods is called... but I don't see the answer in the client...

Can you share your CometHandler.onEvent code? How do you write the
response? Are you calling response.flush()?


>
> TO be more clear I have something like:
>
>
> CLIENT SERVER SIP ENTITY
> -------- POST -------->
> (add handler to context)
> --------- PUBLISH ----->
> ......
> .....
> <--------- OK ---------------
> (notify context)
> onEvent is called
> <------------------------- (this steps seems to be missing)
>
> At least i don't see the answer in the client.
>
> Any idea what can be ?

Share as much code as you can so it will be easier for us to help.
Kristoffer (who is on that list as well) as also written an application
that mix SIP and Comet, and as far as I can tell it seems to work.

A+

-- Jeanfrancois



>
>