[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] ISharedObjectObjectContainer problem client side - SharedObjects not found

Hi Robert,

On 11/1/2010 3:25 PM, Robert Onslow wrote:
Aha Scott, yes I'm getting there ..

So presumably I manually create a DistributedEventAdmin on each client
as well as on the server. How do I go on to specify that the the
object on the client is a replica of the object on the server?

All that's necessary to do this is to have the shared object IDs be the same wherever they are created/added. One way to do this is to just use the classname as the shared object ID...e.g.


ID sharedObjectID = IDFactory.getDefault().createStringID(DistributedEventAdmin.class.getName());
sharedObjectManager.addSharedObject(sharedObjectID, new DistributedEventAdmin(), null);


Another option for the Distributed EventAdmin is to use the topic that the eventadmin is responsible for.

Scott