I'm new to Primefaces Push and wanted to know if there is a way to push from an application A (war-file) to an application B (also a war file). Do I need a @PushEndpoint with the same channel in every application?
When I define a @PushEndpoint with a channel (for example "/notification") is this channel available from every application or is it only available inside the application where it was defined from?
Would be awesome If someone could explain to me how to push data between two applications.
Btw. I'm using PrimeFaces 5.2, Atmosphere 2.3.5 and Widlfly 9.0.1. This is my web.xml-configuration for Push (in both of the applications) :
Code: Select all
<context-param>
<param-name>primefaces.PUSH_SERVER_URL</param-name>
<param-value>http://127.0.0.1:8080</param-value>
</context-param>
<servlet>
<servlet-name>PrimePushServlet</servlet-name>
<servlet-class>org.primefaces.push.PushServlet</servlet-class>
<init-param>
<param-name>org.atmosphere.cpr.broadcasterCacheClass</param-name>
<param-value>org.atmosphere.cache.UUIDBroadcasterCache</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>PrimePushServlet</servlet-name>
<url-pattern>/primepush/*</url-pattern>
</servlet-mapping>