title: BlazeDS - Spring - Messaging - How to push data from service to Flex clients?
body: <p>Since my service, I would like to push data (messaging).</p>
  
  <pre><code>@Service
  @RemotingDestination
  public class LoginService implements ILoginService
  {
      // ...
  
      @Autowired
      private MessageBroker msgBroker;
  
      // ...
  
      @Transactional
      public final Boolean MyServiceFct(String data)
      {
       // ...
  
              // ... compute some result informations (with database informations, with current user session informations, etc.); 
              // this result must be after send to all clients ...
  
       // creating a new async message and setting the result informations as content.
       String clientID = UUIDUtils.createUUID();   
       AsyncMessage msg =new AsyncMessage(); // setting the destination for this message. 
       msg.setDestination("MyAdapterPushData");
       msg.setClientId(clientID);
       msg.setMessageId(UUIDUtils.createUUID());
       msg.setBody("coucou");
       msgBroker.routeMessageToService(msg,null);
  
       return true;
  }
  </code></pre>
  
  <p>With this implementation, nothing to do ... clients receiveid nothing.</p>
  
  <p>So, how I push data from a service like that ? Is it possible ?</p>
  
  <p>Thank you very much for your help,</p>
  
  <p>Anthony</p>