I've got a PushServer setup locally and the chat examples working locally as well. What I'm trying to do now is setup PushServer to deal with dynamic channels. I'd like my channels to be along the lines of :
<p:push id="pushSearchResults" channel="#{user.id}_SEARCH_RESULTS_PROFILE" onmessage="showResultsProfile();">
</p:push>
from what I understand my push server needs to have this in it's web.xml
<servlet>
<servlet-name>Push Servlet</servlet-name>
<servlet-class>org.primefaces.push.PushServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<init-param>
<param-name>channels</param-name>
<param-value>chat,counter,SEARCH_RESULTS_PROFILE</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>Push Servlet</servlet-name>
<url-pattern>/prime-push/*</url-pattern>
</servlet-mapping>
Where I will have no idea at the time what "#{user.id}". just pushing to SEARCH_RESULTS_PROFILE means all logged in users would get the update which is not desired.
Can I configure the push server to create dynamic channels?
Can I use SubTopics on the push server? I could work with #{user.id}@SEARCH_RESULTS_PROFILE
PushServer with dynamic channels?
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
New PrimePush will support this.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
That's for new PrimePush as well.
-
- Information
-
Who is online
Users browsing this forum: Baidu [Spider] and 29 guests