Probably because he's a beginnerirvinedi wrote:Why wouldn't it be possible?globa wrote:I don't think it's possible with glassfish.
Enabling PrimeFaces Push on Glassfish 3.1.2
Hi,
I've been working with primefaces since 3.5 release and glassfish 3.1.2.2 - always fighting with ajax push.
Since yesterday I've finally make it work ! So I would like to confirm it can work on glassfish 3.1.2.2
1. Turn on ! on all http listners comet support
2. Turn off ! on all listeners websocket support
3. Add properly atmosphere-runtime to you pom.xml - currently 2.2.5
4. web.xml setup (use native is very important otherwise it didn't work for me
<!--Primefaces push-->
<servlet>
<servlet-name>Push Servlet</servlet-name>
<servlet-class>org.primefaces.push.PushServlet</servlet-class>
<init-param>
<param-name>org.atmosphere.useNative</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>Push Servlet</servlet-name>
<url-pattern>/primepush/*</url-pattern>
</servlet-mapping>
So now i'm happy
I've been working with primefaces since 3.5 release and glassfish 3.1.2.2 - always fighting with ajax push.
Since yesterday I've finally make it work ! So I would like to confirm it can work on glassfish 3.1.2.2
1. Turn on ! on all http listners comet support
2. Turn off ! on all listeners websocket support
3. Add properly atmosphere-runtime to you pom.xml - currently 2.2.5
4. web.xml setup (use native is very important otherwise it didn't work for me
<!--Primefaces push-->
<servlet>
<servlet-name>Push Servlet</servlet-name>
<servlet-class>org.primefaces.push.PushServlet</servlet-class>
<init-param>
<param-name>org.atmosphere.useNative</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>Push Servlet</servlet-name>
<url-pattern>/primepush/*</url-pattern>
</servlet-mapping>
So now i'm happy
Glassfish Application Server V3.1.2.2
Primefaces Library 3.5 FINAL
Sun Mojarra 2.1.20
Primefaces Library 3.5 FINAL
Sun Mojarra 2.1.20
-
- Information
-
Who is online
Users browsing this forum: No registered users and 51 guests