0 Replies Latest reply on Jul 29, 2011 10:36 AM by arg20

    Communicating different users' beans

    arg20

      I'm developing an application in which users share an activity, that is, they both operate on the same data and changes one user makes to any of it are pushed to the other user's browser.
      So far, I have achieved this by pushing any changes to the database and having the other user's session bean poll for changes, I didn't really like this approach. Then I thought of CDI events, but I'm not exactly sure of the scope of their propagation, I don't think they propagate to another User's context and even if they did I can think of a number of reasons it wouldn't be a good idea.
      So my question is, is there any way in which I can share an instance of a bean between two users? Would this require implementing a custom scope?