title: cometd bayeux can't send message to a specific client
body: <pre class="lang-java prettyprint-override"><code>//StockPriceEmitter is a "dead loop" thread which generate data, and invoke StockPriceService.onUpdates() to send data.
  @Service
  public class StockPriceService implements StockPriceEmitter.Listener
  {
      @Inject
      private BayeuxServer bayeuxServer;
      @Session
      private LocalSession sender;
  
      public void onUpdates(List&lt;StockPriceEmitter.Update&gt; updates)
      {
          for (StockPriceEmitter.Update update : updates)
          {
              // Create the channel name using the stock symbol
              String channelName = "/stock/" + update.getSymbol().toLowerCase(Locale.ENGLISH);
  
              // Initialize the channel, making it persistent and lazy
              bayeuxServer.createIfAbsent(channelName, new ConfigurableServerChannel.Initializer()
              {
                  public void configureChannel(ConfigurableServerChannel channel)
                  {
                      channel.setPersistent(true);
                      channel.setLazy(true);
                  }
              });
  
              // Convert the Update business object to a CometD-friendly format
              Map&lt;String, Object&gt; data = new HashMap&lt;String, Object&gt;(4);
              data.put("symbol", update.getSymbol());
              data.put("oldValue", update.getOldValue());
              data.put("newValue", update.getNewValue());
  
              // Publish to all subscribers
              ServerChannel channel = bayeuxServer.getChannel(channelName);
              channel.publish(sender, data, null); // this code works fine
              //this.sender.getServerSession().deliver(sender, channel.getId(), data, null); // this code does not work
          }
      }
  }
  </code></pre>
  
  <p>this line <code>channel.publish(sender, data, null); // this code works fine</code> works fine, now I don't want channel to publish message to all clients subscirbed with it, I want to send to a specific client, so I write this <code>this.sender.getServerSession().deliver(sender, channel.getId(), data, null);</code>, but it does not work, browser can't get message.</p>
  
  <p>thx in advance.</p>