It has been a long time since I wanted to have a closer look at the
application model in Aries, so I've tried to install the application
support bundles in Karaf and install the sample applications.
It doesn't really work, so I'd like to start fixing things a bit.

The following method of AriesApplicationManager interface is supposed
to install the bundles for the application:
    ApplicationContext install(AriesApplication app);
The counterpart for uninstalling the application is
    void uninstall(ApplicationContext app);

The first point is that the implementation does not actually install
the bundles.   So i was going to fix that, but I wonder about the
state of the application.
My understanding is that the state of the application is an aggregate
of its constituents states, so that the application is RESOLVED if all
bundles are at least RESOLVED.
What if a bundle has been uninstalled ?  Do we force to uninstall /
reinstall the application ?
In order to be more consistent with OSGI bundles, we could also:
   * keep the install on AriesApplicationManager
   * move the uninstall on ApplicationContext
   * add an update method on ApplicationContext

Thoughts ? Comments ?

-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Reply via email to