If you were considering using ICEfaces, you would just define each room as a
RenderGroup. Each of their veiws(for that room) would be registered to the room's group, and any change in the view would be (ajax) pushed to the user's view. Not sure if you were considering ICEfaces, but thought I would outline the use for you here. There is an example of using ajax-push with Seam on the ICEfaces Downloads page Choose Projects, then there is a tab for Seam and seam-auctionMonitor is listed under the 1.7.0 projects (also works with ICEfaces 1.7.1 though).
HI, thanks for reply !!!.. Im not using ICEfaces, Im using Flex as my View. Anyway the principal part of this is How to keep a single instance per Room (group of user and diferent machines). ?
Having one seam component instance per Room give me the facility to use a clustered enviorament for all seam components.
I hope u can help me.
Any suggestion? Please help me, I cant find the way to do this !!!
You could have a Application scoped
AllRoomManager, which holds and manages the RoomManager instances. Then you have a conversation scoped component which has a reference to a certain RoomManager instance.
Hi Daniel, What do u mean when u say?:
You could have a Application scoped AllRoomManager, which holds and manages the RoomManager instances
I understand I can have a AllRoomManager Application scoped component. And inside this a RoomManager instances, maybe using a HashMap or some type of Object contanier. Is it what u mean?.. What would be the type of the RoomManager instance?... do u mean Conversation scoped?... If it does, how can I create a new Instance of this component?. Is it possible? to attach a new instance component inside another component (in the AllRoomManager Application scoped).
Thanks for reply Daniel, sorry for by bad english, Im Mexican :D see u the next.
RoomManager instance would not be scoped at all. It's just an object accessible from the application scoped AllRoomsManager component. Then you have a conversation scoped
RoomAction, which has a reference to the currently used RoomManager.