title: spring-messaging xml config with stomp and spring-sessions
body: <p>I'm trying to set up WebSockets with spring-messaging using stomp, and using redis-backed sessions with spring-session.  Our application context is wired via xml, and spring-session is working with the non-websocket portion of the application.  The relevant config for websocket is as follows</p>
  
  <pre><code>    &lt;websocket:message-broker application-destination-prefix="/streaming" &gt;
      &lt;websocket:stomp-endpoint path="/data"&gt; 
          &lt;websocket:sockjs session-cookie-needed="false" /&gt;
      &lt;/websocket:stomp-endpoint&gt;
      &lt;websocket:stomp-broker-relay prefix="/topic" relay-host="${jms_hostname}" relay-port="${jms_stomp_port}" /&gt;
      &lt;websocket:client-inbound-channel&gt;
          &lt;websocket:interceptors&gt;
              &lt;ref bean="sessionRepoMessageInterceptor"/&gt;
              &lt;ref bean="authenticationValidationInterceptor" /&gt;
              &lt;ref bean="selectorValidationInterceptor" /&gt;
              &lt;ref bean="selectorQuotingInterceptor" /&gt; &lt;!-- comes after we have validated the selector, we now shim it so JMS understands it --&gt;
          &lt;/websocket:interceptors&gt;
      &lt;/websocket:client-inbound-channel&gt;
  &lt;/websocket:message-broker&gt;
  </code></pre>
  
  <p>I have defined what I think are the necessary beans for spring-session's integration with web sockets here:</p>
  
  <pre><code>&lt;bean id="redisSessionBackedWebsocketHandler" class="org.springframework.session.web.socket.server."&gt;
  &lt;/bean&gt;
  
  &lt;bean id="sessionRepoMessageInterceptor" class="org.springframework.session.web.socket.server.SessionRepositoryMessageInterceptor"&gt;
  &lt;/bean&gt;
  
   &lt;bean id="webSocketRegistryListener" class="org.springframework.session.web.socket.handler.WebSocketRegistryListener"&gt;
   &lt;/bean&gt;
  </code></pre>
  
  <p>but I'm not sure where I would wire them in to the web socket configuration, and have not been able to find any doc on how to do it this way.</p>
  
  <p>Thoughts?</p>