title: Websocket push notification to several JSF applications on Tomcat
body: <p>I have two JSF applications running on Tomcat.</p>
  
  <ul>
  <li>localhost:8080/app1/index.xhmtl</li>
  <li>localhost:8080/app2/index.xhmtl</li>
  </ul>
  
  <p>In both index files the same f:websocket tag is placed in the form section.</p>
  
  <pre><code>&lt;h:form&gt;
  
      ...
      ...
      ...
  
      &lt;f:websocket channel="test" onmessage="socketListener" /&gt;
      &lt;h:outputScript&gt;
          function socketListener(message, channel, event) {
              console.log(message);
          }
      &lt;/h:outputScript&gt;
  
  &lt;/h:form&gt;
  </code></pre>
  
  <p>In both managed beans the same channel is used.</p>
  
  <pre><code>@ApplicationScoped
  @Named
  public class AppController implements Serializable
  {
      @Inject
      @Push(channel = "test")
      private PushContext pushContext;
  
      public void sendMessage(String p_message)
      {
          pushContext.send(p_message);
      }
  
      ...
      ...
      ...
  
  }
  </code></pre>
  
  <p>But when I send a notification via JAVA method <code>pushContext.send</code> of app1, the JS method <code>socketListener</code> of app2 does not work.</p>
  
  <p>Is it possible to push notification to several JSF applications at once?</p>