Push message not to url specified in web.xml

UI Components for JSF
Post Reply
vineethng
Posts: 4
Joined: 30 Jan 2014, 15:55

12 Feb 2015, 07:03

I have configured the push server url in web.xml by specifing an external address other than my application url. The push socket component listens to this external url but when i sends a message from my application using the eventBus.publish("/service/push", data) this message is not published to the external push server address. Is this a bug with the event bus or should i specify eventBus.publish("http://externalUrl/service/push", data). I am using primeface 5.1, atmosphere 2.2.2

romeromfm
Posts: 2
Joined: 10 Oct 2013, 22:15

13 Feb 2015, 03:23

It's okay using "/service/push", but be sure you had put "/service/push" in the component <p:socket> in your view and also be sure you are using @PushEndpoint in your resource class. Okay?

Could you plz show us your web.xml, .xhtml and .java codes?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 50 guests