Pushing into two different applications?

UI Components for JSF
Post Reply
acidowl
Posts: 2
Joined: 09 Nov 2015, 12:40

09 Nov 2015, 12:50

Hi,

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>

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

10 Nov 2015, 18:04

I searched this [PrimeFaces Push] forum for 'jms', because I remember this being discussed earlier, and found the following in the search results:

[SOLVED] Push between multiple webapps?

Read all posts (and both pages) of the forum topic, above.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

acidowl
Posts: 2
Joined: 09 Nov 2015, 12:40

20 Nov 2015, 15:32

Thanks for your help! Got it working. :)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

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