Enabling PrimeFaces Push on Glassfish 3.1.2

UI Components for JSF
Julian88
Posts: 1
Joined: 25 Aug 2014, 12:20

25 Aug 2014, 12:22

irvinedi wrote:
globa wrote:I don't think it's possible with glassfish.
Why wouldn't it be possible?
Probably because he's a beginner :-)

tricky10
Posts: 79
Joined: 25 Oct 2010, 08:52
Location: Poland

03 Mar 2015, 14:22

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 :D
Glassfish Application Server V3.1.2.2
Primefaces Library 3.5 FINAL
Sun Mojarra 2.1.20

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 21 guests