You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Ivan <xh...@gmail.com> on 2009/10/21 16:18:00 UTC
Use OSGI's way to install/uninstall Geronimo Plugins/Applications
Hi,
In the OSGI environment, we could use BundleContext.install and
Bundle.uninstall to do the saving/deleting actions to the repository. I
think that we could take advantage of it, those codes in the
Maven2Repository and ConfigurationStore could be replaced. Also, I guess the
mvn url could be used here.
Any comment ?
--
Ivan
Re: Use OSGI's way to install/uninstall Geronimo Plugins/Applications
Posted by David Jencks <da...@yahoo.com>.
On Oct 21, 2009, at 7:18 AM, Ivan wrote:
> Hi,
> In the OSGI environment, we could use BundleContext.install and
> Bundle.uninstall to do the saving/deleting actions to the
> repository. I think that we could take advantage of it, those codes
> in the Maven2Repository and ConfigurationStore could be replaced.
> Also, I guess the mvn url could be used here.
> Any comment ?
I don't think this will work. The way I've set it up so far, you put
stull in the repository through file based actions such as assembling
a server using the car-maven-plugin or just copying files in. Then
you can use bundleContext.install(<mvn-url>) to tell osgi about the
bundle. Since this is set up to use references, this causes osgi to
make an entry in the data directory with some info saying that osgi
knows about the bundle. There's also the DependencyManager that looks
for the install event and installs all the geronimo dependencies into
osgi.
thanks
david jencks
> --
> Ivan
Re: Use OSGI's way to install/uninstall Geronimo Plugins/Applications
Posted by Rex Wang <rw...@gmail.com>.
Yes, I think so, pax url bundle provide the mvn url handler so that we can
install and resovle a bundle by specifying in mvn:// format.
-Rex
2009/10/21 Ivan <xh...@gmail.com>
> Hi,
> In the OSGI environment, we could use BundleContext.install and
> Bundle.uninstall to do the saving/deleting actions to the repository. I
> think that we could take advantage of it, those codes in the
> Maven2Repository and ConfigurationStore could be replaced. Also, I guess the
> mvn url could be used here.
> Any comment ?
> --
> Ivan
>
Re: Use OSGI's way to install/uninstall Geronimo Plugins/Applications
Posted by Ivan <xh...@gmail.com>.
I will fire a JIRA, and try to see what could be done !
2009/10/21 Ivan <xh...@gmail.com>
> Hi,
> In the OSGI environment, we could use BundleContext.install and
> Bundle.uninstall to do the saving/deleting actions to the repository. I
> think that we could take advantage of it, those codes in the
> Maven2Repository and ConfigurationStore could be replaced. Also, I guess the
> mvn url could be used here.
> Any comment ?
> --
> Ivan
>
--
Ivan