[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [riena-dev] Remote Services from updated Configurations of Managed Services
|
Hi Ekke,
I think this is a misconception about what properties are and what
configuration is. Properties is a dictionary of key value pairs
associated with that service. Configurations are also key values pairs
but they are not the same (semantic wise) as the service properties.
In your example Service X (or better Instance X) is registered with
Interface A. Now the same instance X also registers with Interface
ManagedService. These two have no relationship (even though they are
two registeration about the same instance).
Instance X registered with Interface A can have a set of Properties,
which I believe are immutable. So you cant chance the properties of a
registered service. You can change its configuration, but these are
two things.
My recommendation. Register your Instance X with the Interface
ManagedService. As soon as you get the configuration through the
ManagedService interface, the instance itself registers itself with
Interface A and with the set of properties it receives. For each and
every update of the configuration you unregister and register again.
that should work
christian campo
p.s. And right we monitor Service Register and Unregister Events. I
believe there are no events for property changes which make we think
they are immutables.
Am 28.08.2008 um 22:04 schrieb ekkehard:
hi,
should this work:
Bundle x registers Service X for Interface A (and implements
ManagedService)
later I track these ManagedServices,
Create a new Dictionary with the Riena Remote properties
and update the Configuration of the Service
Will Riena detect these Services and register them as remote
Services ?
I can imagine that Riena is only listening for Services added with
the riena Properties.
But my Services are all registered from another tool (EasyBeans) and
they added the ManagedService Interface so i cann update the
Configuration later with my Riena dictionairy.
I'm just testing this without success. of course - perhaps there is
an error from me - but to be sure I want to ask if this is really
possible. ...and if not to ask if Riena can also listen for Changed
Configurations of Managed Services ?
...would be very important for me - otherwise I had to register all
my (hundreds of)
EJB Interfaces twice (one time from easyBeans and one time for Riena)
thanks
ekke
_______________________________________________
riena-dev mailing list
riena-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/riena-dev