Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] How could I setup DistributedEventAdmin using DS ?

Cristiano,

On 8/10/2011 11:12 AM, Cristiano Gavião wrote:
Well, perhaps you said that could be better to create the container manually, in case of Hello.DS, the container is being created automatically, no ?

Yes, that's true (that the container is created automatically in Hello.DS). But the distributed event admin is not the same as the hello world example (distributed event admin is based upon a pub/sub model...hello is a simple client/server model of communication).


My goal was to get this created container and use it to setup the distributed events.... is there a way to get a reference to this created container ?

Yes, you can get access to it via the containerManager...unless by the time that the IContainerManager is injected into a service component the container hasn't yet been created (which may be what's happening in your case...I'm not sure).


Could you tell which class is responsible for this creation task so I can study it?

There are a number of examples of creating container instances...e.g. the hello world non-ds examples...e.g. [1]-host and [2]-consumer.

If you are referring to a service component (ds) that exposes distributed EventAdmin as a local service...that code is not public/open source at this point, so I can't make it available.

Scott

[1] http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/tree/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/src/org/eclipse/ecf/internal/examples/remoteservices/hello/host/HelloHostApplication.java [2] http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/tree/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.consumer/src/org/eclipse/ecf/internal/examples/remoteservices/hello/consumer/HelloConsumerApplication.java




Back to the top