Long-Polling doesn't work with 0.8-SNAPSHOT

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Long-Polling doesn't work with 0.8-SNAPSHOT

Oleg
This post was updated on .
Hello community,

I use Atmosphere-jQuery plugin 0.8-SNAPSHOT and Long-Polling doesn't work. It was working in 0.7.2. GET-connection gets closed now after a message has been arrived. After closing a new GET-connection will not be sent then. Is this issue well-known?


I use Jersey 1.6. I have just included atmosphere-jersey in pom.xml

        <dependency>
            <groupId>org.atmosphere</groupId>
            <artifactId>atmosphere-jersey</artifactId>
            <version>0.8-SNAPSHOT</version>
            <exclusions>
                <exclusion>
                    <groupId>org.atmosphere</groupId>
                    <artifactId>atmosphere-ping</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

Please help me. I need 0.8-SNAPSHOT by reason of streaming and websocket. Thanks a lot.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Long-Polling doesn't work with 0.8-SNAPSHOT

java.net
Have you setup the JavascriptClientFilter?

On 4-9-2011 13:31, Oleg wrote:
Hello community,

I use Atmosphere-jQuery plugin 0.8-SNAPSHOT and Long-Polling doesn't work.
It was working in 0.7.2. GET-connection gets closed now after a message has
been arrived. After closing a new GET-connection will be not sent then. Is
this issue well-known?


I use Jersey 1.6. I have just atmosphere-jersey included in pom.xml

&lt;dependency&gt;
            &lt;groupId&gt;org.atmosphere&lt;/groupId&gt;
            &lt;artifactId&gt;atmosphere-jersey&lt;/artifactId&gt;
            &lt;version&gt;0.8-SNAPSHOT&lt;/version&gt;
            &lt;exclusions&gt;
                &lt;exclusion&gt;
                    &lt;groupId&gt;org.atmosphere&lt;/groupId&gt;
                    &lt;artifactId&gt;atmosphere-ping&lt;/artifactId&gt;
                &lt;/exclusion&gt;
            &lt;/exclusions&gt;
        &lt;/dependency&gt;

Please help me. Thanks a lot.

--
View this message in context: http://atmosphere-users-mailling-list.2493822.n2.nabble.com/Long-Polling-doesn-t-work-with-0-8-SNAPSHOT-tp6758191p6758191.html
Sent from the Atmosphere users mailling list mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Long-Polling doesn't work with 0.8-SNAPSHOT

Oleg
In reply to this post by Oleg
So, I summarize what I have figured out for my web app (similar to jQuery based PubSub example).

1) Version 0.7.2:
Long-Polling - ok
Streaming - ok
WebSocket - not ok.

1) Version 0.8-SNAPSHOT:
Long-Polling - not ok
Streaming - ok
WebSocket - ok.

I have really tried all posible configurations and workarounds. I have decided now to deploy two web apps with different releases of Atmosphere (jersey, jquery plugin). Each web app will support two transports depending on release number :-)

Any suggestions, tips, etc. are welcome.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Long-Polling doesn't work with 0.8-SNAPSHOT

Oleg
In reply to this post by java.net
Hi. Sure. My init-params are

<init-param>
            <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name>
            <param-value>com.sun.jersey.api.core.PackagesResourceConfig</param-value>
        </init-param>
        <init-param>
            <param-name>com.sun.jersey.config.property.packages</param-name>
            <param-value>com.googlecode.whiteboard.pubsub</param-value>
        </init-param>
        <init-param>
            <param-name>org.atmosphere.useWebSocket</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param>
            <param-name>org.atmosphere.useNative</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param>
            <param-name>org.atmosphere.cpr.WebSocketProcessor</param-name>
            <param-value>org.atmosphere.cpr.HttpServletRequestWebSocketProcessor</param-value>
        </init-param>
        <init-param>
            <param-name>org.atmosphere.cpr.broadcastFilterClasses</param-name>
            <param-value>org.atmosphere.client.JavascriptClientFilter</param-value>
        </init-param>
        <init-param>
            <param-name>org.atmosphere.cpr.broadcasterCacheClass</param-name>
            <param-value>org.atmosphere.cache.HeaderBroadcasterCache</param-value>
        </init-param>

Thanks for your reply.
Loading...