Hi all,

I have currently a recurring question in mind about the following problem:

I have created a service A interface that accepts event listeners (with the
usual addFooListener()/removeFooListener() methods).
In the implementation class I have defined a EventListenerList member (not
static) to hold the list of listeners to the events produced by the service.

Now what will happen if I use the threaded or pooled service model for my
service?
For instance, if I create a second service B which implementation consumes
the events provided by service A, construct B with BuilderFactory with the
singleton model, how will it be linked to service A (or more exactly all the
instances of A since it is threaded/pooled)?

Can we say that HiveMind will call A.addFooListener(B) for _every_ threaded
instance of A?
I did not check it yet, but since I am currently working in quite a big task
and I started wondering about this point (which answer will probably have an
impact on what I am doing), I would need some clarification about this
point.
I tried to find the answer to my question in the doc to no avail.

Thank you in advance for any answer

Cheers



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to