Stefano,

And Atmosphere (PrimeFaces Push) has been working very very well with
TomEE+ for 6 to 8 months now, for me. For at least 2 or 3 months now, I
have been including Atmosphere JAR(s) in my WAR file as it really is NOT
necessary to include Atmosphere JARs in tomee/lib folder.

Please do as I advise below.

1. click URL below and download the latest atmosphere-runtime
2.0.0-SNAPSHOT JAR, I am currently using 2013-07-03 JAR file, and there is
NO need to download anything else.

https://oss.sonatype.org/content/repositories/snapshots/org/atmosphere/atmosphere-runtime/

2. You can include atmosphere-runtime 2.0.0-SNAPSHOT JAR in your WAR file

3. if using servlet 3, atmosphere's wiki (and jeanfrancois) advises to add
the following to the atmosphere/push servlet in your web.xml

        <async-supported>true</async-supported>

4. below is my web.xml for configuring Atmosphere (or PrimeFaces Push).
please compare your settings and/or try config similar to what I have below.

    <!--
         PRIMEFACES PUSH via Atmosphere framework

         For Tomcat, see following:


http://kahimyang.info/kauswagan/howto_blogs/1298-using_primefaces_primepush_with_tomcat_7
    -->

    <servlet>
        <servlet-name>Push Servlet</servlet-name>
        <servlet-class>org.primefaces.push.PushServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
        <async-supported>true</async-supported>
        <init-param>

<param-name>org.atmosphere.cpr.broadcasterCacheClass</param-name>

<param-value>org.atmosphere.cache.HeaderBroadcasterCache</param-value>
        </init-param>
        <init-param>
            <param-name>org.atmosphere.cpr.broadcasterClass</param-name>
            <param-value>org.atmosphere.cpr.DefaultBroadcaster</param-value>
        </init-param>
        <init-param>

<param-name>org.atmosphere.cpr.broadcastFilterClasses</param-name>

<param-value>org.atmosphere.client.TrackMessageSizeFilter</param-value>
        </init-param>
        <init-param>
            <param-name>org.atmosphere.cpr.sessionSupport</param-name>
            <param-value>true</param-value>
        </init-param>
    </servlet>
    <servlet-mapping>
        <servlet-name>Push Servlet</servlet-name>
        <url-pattern>/primepush/*</url-pattern>
    </servlet-mapping>

5. and let me know ALL the changes you made in/to your app and if you did
ALL the steps I listed above, and let me know the test results.

Howard

Reply via email to