How can client get notified about server-side changes?
![]()
Hi,
is there a possibility to get notified about recent server-side changes so that the client ui can adjust accordingly? Does that have to be done with the mentioned Feed Service? If yes, where would be a good starting point to investigate that? Besides, what is the recommended way to update client ui after changes initiated by the same client. Is there already a observer mechanism available where ui elements can register listener or fire changes? Thanks for your help! Andreas |
3 answers
![]()
Andreas Meissner wrote:
Hi, It doesn't have to be done with the feed service, but depending on your needs, the feed service could be useful. There is a wiki about the FeedService here: https://jazz.net/wiki/bin/view/Main/FeedService
I think you should take a look at IItemManager. This is a client-side cache that allows multiple participants on the client (e.g. independent views) to share items such that when one participant fetches a newer state, everyone holding the shared item sees the new information. There is an observer mechanism - see the addItemChangeListener methods. The javadoc on IItemManager is pretty extensive. The only thing I'll add (because I saw someone get stuck on this recently) is that you get the IItemManager by calling ITeamRepository.itemManager() (note the non-javabean naming pattern). |
![]()
Hi Chris,
thanks for the hints! That seems to be exactly what I was looking for. It doesn't have to be done with the feed service, but depending on Just for curiosity, what would be other possibilities? Andreas |