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 2012/03/27 15:53:19 UTC

Use reference:file URL for installing the bundles in repository

Now in Geronimo, we are using mvn protocol to install the bundles to the
OSGi runtime, with this, all the bundles in the repository will have
another copy in the cache, considering the getRealPath support, we may have
three copies of the deployed applications in the server directory. I am
thinking to use the reference:file to install the bundles, and those
deployed applications in the repository directory will be extracted, as
what we do in Geronimo 2.* versions. Actually, I have changed to use
reference:file protocol to install the temp bundle in the deployment
process in the past.

Remembered that there is some discussion for this in the past, but not get
a final result. Also, I am not familiar with the changes in trunk now, not
sure whether this is also applicable for it, Thoughts ?

-- 
Ivan

Re: Use reference:file URL for installing the bundles in repository

Posted by David Jencks <da...@yahoo.com>.
Hi Ivan,

I think if this works it's a good idea.

I don't think it will be easy to port to trunk because karaf is so heavily dependent on mvn: urls.  However, I think this is a mistake in karaf.  I think that karaf should use reference urls for anything in the system repo and only use mvn urls for stuff that is actually from a normal maven-maintained maven repo such as ~/.m2/repository.  This would also avoid the need to check remote maven repos for updates all the time.  However, I haven't been able to convince anyone else in the karaf community about this.

thanks
david jencks

On Mar 27, 2012, at 6:53 AM, Ivan wrote:

> Now in Geronimo, we are using mvn protocol to install the bundles to the OSGi runtime, with this, all the bundles in the repository will have another copy in the cache, considering the getRealPath support, we may have three copies of the deployed applications in the server directory. I am thinking to use the reference:file to install the bundles, and those deployed applications in the repository directory will be extracted, as what we do in Geronimo 2.* versions. Actually, I have changed to use reference:file protocol to install the temp bundle in the deployment process in the past.
> 
> Remembered that there is some discussion for this in the past, but not get a final result. Also, I am not familiar with the changes in trunk now, not sure whether this is also applicable for it, Thoughts ?
> 
> -- 
> Ivan


Re: Use reference:file URL for installing the bundles in repository

Posted by Ivan <xh...@gmail.com>.
Just commit first step changes to 3.0-beta at rev.1307840. Now, all the car
packages are extracted in the repository directory, and for common web
applications, no need the getRealPath workaround, while it is still
required for WAB and EBA. I am thinking that whether it is possible to
extract the wab in the eba, so that we could use reference:file protocol,
too.

2012/3/28 Jarek Gawor <jg...@gmail.com>

> +1.
>
> Jarek
>
> On Tue, Mar 27, 2012 at 9:53 AM, Ivan <xh...@gmail.com> wrote:
> > Now in Geronimo, we are using mvn protocol to install the bundles to the
> > OSGi runtime, with this, all the bundles in the repository will have
> another
> > copy in the cache, considering the getRealPath support, we may have three
> > copies of the deployed applications in the server directory. I am
> thinking
> > to use the reference:file to install the bundles, and those deployed
> > applications in the repository directory will be extracted, as what we
> do in
> > Geronimo 2.* versions. Actually, I have changed to use reference:file
> > protocol to install the temp bundle in the deployment process in the
> past.
> >
> > Remembered that there is some discussion for this in the past, but not
> get a
> > final result. Also, I am not familiar with the changes in trunk now, not
> > sure whether this is also applicable for it, Thoughts ?
> >
> > --
> > Ivan
>



-- 
Ivan

Re: Use reference:file URL for installing the bundles in repository

Posted by Jarek Gawor <jg...@gmail.com>.
+1.

Jarek

On Tue, Mar 27, 2012 at 9:53 AM, Ivan <xh...@gmail.com> wrote:
> Now in Geronimo, we are using mvn protocol to install the bundles to the
> OSGi runtime, with this, all the bundles in the repository will have another
> copy in the cache, considering the getRealPath support, we may have three
> copies of the deployed applications in the server directory. I am thinking
> to use the reference:file to install the bundles, and those deployed
> applications in the repository directory will be extracted, as what we do in
> Geronimo 2.* versions. Actually, I have changed to use reference:file
> protocol to install the temp bundle in the deployment process in the past.
>
> Remembered that there is some discussion for this in the past, but not get a
> final result. Also, I am not familiar with the changes in trunk now, not
> sure whether this is also applicable for it, Thoughts ?
>
> --
> Ivan

Re: Use reference:file URL for installing the bundles in repository

Posted by Forrest Xia <fo...@gmail.com>.
Sounds if we use this method, we could save some time when deployment time,
thus could help with GERONIMO-6222. For big Java EE artifacts deployment,
copying several times really cause some performance weakness. Would like to
see that change if no much conflicts with Geronimo future direction.

On Tue, Mar 27, 2012 at 9:53 AM, Ivan <xh...@gmail.com> wrote:

> Now in Geronimo, we are using mvn protocol to install the bundles to the
> OSGi runtime, with this, all the bundles in the repository will have
> another copy in the cache, considering the getRealPath support, we may have
> three copies of the deployed applications in the server directory. I am
> thinking to use the reference:file to install the bundles, and those
> deployed applications in the repository directory will be extracted, as
> what we do in Geronimo 2.* versions. Actually, I have changed to use
> reference:file protocol to install the temp bundle in the deployment
> process in the past.
>
> Remembered that there is some discussion for this in the past, but not get
> a final result. Also, I am not familiar with the changes in trunk now, not
> sure whether this is also applicable for it, Thoughts ?
>
> --
> Ivan
>



-- 
Thanks!

Regards, Forrest