Hi all,
I have been working on getting the SharedObjects to replication across instances of ReD5. So far the replication of the RSO seems to work ok. But now I am redesigning the implementation and have problems. The proposed main entry point is the org.red5.server.so.SharedObjectService It will have a createSharedObject() that will create a org.red5.server.so.SharedObjectScopeReplication Problem. (1) ----------------- It will also create an instance of the TreeCache which is specific to JBossCache. Obviously this is a poor encapsulation. I suspect that new application configuration will determine the type of replication system used (JBOSSCache, JCache etc ) and provide some booting mechanism. I am keen on using MBean which are easily configured in the J2EE container. Any ideas please! Getting the underlying sharedObject to replicate is relatively easy and encapsulated within the new class org.red5.server.so.SharedObjectReplication Problem (2) ------------- However there is a need to notify local RTMP connections using the existing RMTP sendMessage stuff when a change happens to the replicated SharedObject. The CacheEventhandler is notified when the underlying replicated state changes. The current plan was simply to inform the local shared Object of setAttribute/removeAttribute and this would cause the subsequent notification down the RTMP connection. However to call the setAttribute/removeAttrbute there needs an instance of IScope to locate the instance sharedObject. The proposed location of the eventHandler needs to be able to create/modifiy and remove SharedObjects. org.red5.server.so.SharedObjectService seemed like a good location for the eventhandler but I am unable to get hold of some type of IScope, be it the globalScope or anything. How can I get hold of an instance of the globalScope from with in ShareObjectService? Any ideas or comments are most appreciated. Many thanks _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
