title: eventBus() method is returning null
body: <p>I have an application that use primefaces 5.3,jsf 2.1,atmosphere-runtime 2.3.0,spring 4.0.0, servlet 3.0, I try to use push in primefaces but when I execute the line </p>
  
  <pre><code>EventBus eventBus = EventBusFactory.getDefault().eventBus();
  </code></pre>
  
  <p>it always return null, I searched in some pages but can't fix my problem,</p>
  
  <p>This is my web.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0"&gt;
      &lt;display-name&gt;Aclaraciones&lt;/display-name&gt;
  
      &lt;welcome-file-list&gt;
          &lt;welcome-file&gt;login.xhtml&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;*.xhtml&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
      &lt;context-param&gt;
          &lt;description&gt;State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2&lt;/description&gt;
          &lt;param-name&gt;javax.faces.STATE_SAVING_METHOD&lt;/param-name&gt;
          &lt;param-value&gt;server&lt;/param-value&gt;
      &lt;/context-param&gt;
  
      &lt;context-param&gt;
          &lt;param-name&gt;javax.servlet.jsp.jstl.fmt.localizationContext&lt;/param-name&gt;
          &lt;param-value&gt;resources.application&lt;/param-value&gt;
      &lt;/context-param&gt;
  
      &lt;listener&gt;
          &lt;listener-class&gt;com.sun.faces.config.ConfigureListener&lt;/listener-class&gt;
      &lt;/listener&gt;
  
      &lt;listener&gt;
          &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
      &lt;/listener&gt;
  
      &lt;listener&gt;
          &lt;listener-class&gt;org.springframework.web.context.request.RequestContextListener&lt;/listener-class&gt;
      &lt;/listener&gt;
  
      &lt;context-param&gt;
          &lt;param-name&gt;primefaces.THEME&lt;/param-name&gt;
          &lt;param-value&gt;start&lt;/param-value&gt;
      &lt;/context-param&gt;
  
      &lt;context-param&gt;
          &lt;param-name&gt;primefaces.FONT_AWESOME&lt;/param-name&gt;
          &lt;param-value&gt;true&lt;/param-value&gt;
      &lt;/context-param&gt;
  
      &lt;session-config&gt;
          &lt;session-timeout&gt;30&lt;/session-timeout&gt;
      &lt;/session-config&gt;
  
      &lt;filter&gt;
          &lt;filter-name&gt;filtro&lt;/filter-name&gt;
          &lt;filter-class&gt;com.aclaraciones.filter.LoginFilter&lt;/filter-class&gt;
      &lt;/filter&gt;
  
      &lt;filter-mapping&gt;
          &lt;filter-name&gt;filtro&lt;/filter-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/filter-mapping&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;Push Servlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.primefaces.push.PushServlet&lt;/servlet-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;org.atmosphere.cpr.broadcasterCacheClass&lt;/param-name&gt;
              &lt;param-value&gt;org.atmosphere.cache.UUIDBroadcasterCache&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;load-on-startup&gt;0&lt;/load-on-startup&gt;
          &lt;async-supported&gt;true&lt;/async-supported&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Push Servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/primepush/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>This is my class that use endPoint:</p>
  
  <pre><code>@PushEndpoint("/notify")
  public class PushEndPoint {
  
      @OnMessage(encoders = {JSONEncoder.class})
      public FacesMessage onMessage(FacesMessage message){
          return message;
      }
  
  }
  </code></pre>
  
  <p>And I execute this method</p>
  
  <pre><code>public void socket(){
      EventBus eventBus = EventBusFactory.getDefault().eventBus();
      eventBus.publish("/notify", "Hola mundo");
  }
  </code></pre>
  
  <p>Someone know what am I missing?</p>
  
  <p>Thanks in advance.</p>