On 29.05.2013 12:09, Snorre Lothar von Gohren Edwin wrote:
Hi

This is not related to the other mail I have sent, but I have some
questions that I seak answeres to.
I wondered if someone here might be kind enough to either answere or point
me in the right direction for me to seek some answeres to these?

RQ1 How can OSGi bundles be mapped to active objects?
Not exactly sure what you mean here. In any case the bundle activator is repsonsible for creating objects. So it controls their lifecycle.

RQ2 How can the life cycle of OSGi bundles and services integrated
consistently with state full behaviour of active objects (i.e., components
with their own process)? This includes for instance starting, binding,
stopping, and also updating the code for bundles or active objects,
respectively.
Bundles can start and stop objects and services using their Activator. Declarative Services or Blueprint can be used for the same purpose. To bind services you can use the ServiceTracker or Declarative Services or Blueprint service references.

To update the code you can update bundles.

RQ5 Are there any patterns for communication of events and states? I know
the whiteboard pattern exists.
There is the EventAdmin spec and a felix implementation of it. Of course you can also simply use OSGi services.

Christian



--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to