Salut,
Thomas Gideon wrote:
> Any thoughts on my double response problem?
You means enabling sendfile and comet support at the same time? I don't
think 2.1 supports that but I will take a look. Mainly the send-file
AsyncFilter is conflicting with CometAsyncFilter.
>
> In the meantime, I was able to integrate code to use the commons
> fileupload utility and it works a treat. I am seeing the my upload
> code executing a separate thread and the comet events flowing as
> expected. The only problem I am encountering is for my test JSP, its
> response body is being sent to the browser twice.
>
> View source shows something like, "<html>...</html><html>...</html>".
> If I remove the grizzly-sendfile async filter from my JVM properties
> for GF 2.1, then it works perfectly. If I have both comet and
> grizzly-sendfile enabled, I get this odd doubling behavior. I'd like
> to use both if at all possible since they so nicely complement each
> other for this slow transfer of large files problem I original
> described.
Yes this is exactly what I was thinking. Can you try something? In
domain.xml, put the CometAsyncFilter before the send-file Filter:
-Dcom.sun.enterprise.web.connector.grizzly.asyncFilters=CometAsyncFilter,com.igorminar.grizzlysendfile.SendfileFilter
I suspect it may works as CometAsyncFilter will tell the AsyncHandler to
invoke the next one when a request is not "comet enabled".
Thanks
-- Jeanfrancois
>
> I have sample sources which I can share, if needed. As I mentioned,
> this is running under Glassfish 2.1.
>
>
> Thanks!
>
>
> Thomas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>