The class GeoTools is the integration target; you can register additional
FactoryIterators there (backed on to OSGi or Spring discovery mechanism). I
would like to replace that with an NLookup style interface.
Also just a gentle reminder to everyone on this thread that GeoTools is your
project as well :-)
--
Jody Garnett
On Wednesday, 6 April 2011 at 11:49 PM, Mathieu Baudier wrote:
> Hello,
>
> we have "also" (sorry Jody...) packaged GeoTools as an OSGi plugin.
>
> You can find 2.6.5 here:
> http://maven.argeo.org/argeo/org/argeo/dep/osgi/org.argeo.dep.osgi.geotools/2.6.5.0002/
> and we will upgrade to 2.6.6 soon.
>
> We have also packaged 2.7.0:
> http://maven.argeo.org/argeo/org/argeo/dep/osgi/org.argeo.dep.osgi.geotools/2.7.0.0001/
>
> But we had problems with the PostGIS datastore (related to OSGi, weird
> ClassNotFound exceptions on Apache DBCPś BaicdataSource even though
> the related package is imported) and no time to investigate it, so we
> stay with 2.6.x for the time being.
>
> Please note that:
> - only GeoTools is included, its dependencies are packaged in other
> bundles, available in the same Maven repo:
> http://maven.argeo.org/argeo/org/argeo/dep/osgi/
> - not all gt-* modules are integrated, only the ones we actually use.
> In case there is need for some that we did not integrate, simply ask:
> this is very little effort to add one
> - in order to workaround the multiple service files issue that
> Thorsten pointed out, we are using a goal form one of our Maven
> plugins which automatically merges the service files. It works pretty
> well, and we use it for other software as well (e.g. Apache
> Jackrabbit).
>
> Now, for the long term, Jody is perfectly right that we should find a
> sustainable solution for GeoTools in OSGi. I already volunteered some
> time ago to do it, and did quite a few experiments, but never found
> the time to find a satisfactory solution.
>
> As was pointed out, the only practical solution for the time being is
> to have one big OSGi bundle. In order to have multiple bundles, a
> solution that I have investigated would be to have a bundle wich would
> scan all the other bundles for relevant services files, and then
> provide this information to the main GeoTools "service loader".
>
> I don't remember the exact name but I know that I had seen that there
> was such a central place where all GeoTools services are actually
> searched after and instantiated (@Jody, do you confirm?)
>
> I'm now travelling (actually, I writing to you from the
> German-speaking FOSSGIS conference in Heidelberg!), but I'd be
> interested to be involved in this discussion when I back to my desk.
>
> Meanwhile feel free to use our bundle or ask for more details on how
> to repackage your own (this is just a matter of running 'mvn clean
> install' on such a POM file:
> https://svn.argeo.org/dependencies/trunk/org.argeo.dep.osgi/geotools/pom.xml)
>
> Cheers,
>
> Mathieu
>
> On Mon, Apr 4, 2011 at 16:22, Thorsten Reitz
> <[email protected]> wrote:
> > Hi all,
> >
> > we worked on using geotools as an osgi bundle, but only for specific
> > releases of GeoTools. The latest version for which we did this is 2.6.4.
> > You can download the bundle from here:
> >
> > http://svn.esdi-humboldt.eu/repo/humboldt2/trunk/hale/hale-platform/target/org.geotools/
> >
> > In this folder you will also find the required configuration files
> > (*.bnd) to generate the manifest using bnd. Please note that a few of
> > the dependencies that gt relies on are not part of this bundle, but can
> > be found in the platform as well - just browse the repository. Also note
> > that the generated gt 2.6.4 also has a minor patch applied.
> >
> > Hope this helps & best regards,
> >
> > Thorsten
> >
> > Am 04.04.2011 15:36, schrieb Jody Garnett:
> > > Hi Chad:
> > >
> > > I would love to have GeoTools issue OSGi plugins out of the box; "all"
> > > we need is someone to do the work. There is an outstanding proposal
> > > describing the work here:
> > > -
> > > http://docs.codehaus.org/display/GEOTOOLS/Add+bundle+information+to+jar+manifest
> > >
> > > I did add some stuff to net.refractions.udig.libs that configured
> > > GeoTools for use. If you can tell me how to do that just with OSGi
> > > callbacks I would be happy to make the change.
> > >
> > > Specifically I want to feed some additional EPSG codes into
> > > gt-referencing and set a few other switches on the GeoTools class.
> > >
> > > Other than that you can just package it up yourself; using a single OSGi
> > > plugin for all of the GeoTools jars (so that the java plugin system does
> > > not run into classpath trouble).
> > >
> > > --
> > > Jody Garnett
> > >
> > > On Monday, 4 April 2011 at 11:18 PM, Chad S wrote:
> > >
> > > > I am looking for a geotools build that perhaps has been converted to
> > > > an OSGI plugin or capable of being an OSGI plugin. I was working in
> > > > Eclipse with uDig hoping that since uDig imported all the geotools
> > > > stuff automatically that i could incorporate that set of libraries
> > > > with my custom OSGI builds into one web service(instead of using
> > > > glassfish). Turns out that the OSGI plugins that you get with uDig are
> > > > specific to eclipse(wondering why) so taking anything outside of
> > > > eclipse(like as a web service on a linux box) seems to be not doable.
> > > >
> > > > I have read through some message board links saying the geotools was
> > > > currently not osgi compatible and it seems like NetBeans 6.9 made a
> > > > huge stride with OSGI capabilities so i was just wanted to send out a
> > > > feeder to see if anyone had any suggestions. thanks!
> > > >
> > > > chad
> >
> > --
> > Thorsten Reitz
> > Abteilungsleiter Graphische Informationssysteme
> > Fraunhofer-Institut für Graphische Datenverarbeitung IGD
> > Fraunhoferstr. 5 | 64283 Darmstadt | Germany
> > Tel +49 6151 155-416 | Fax +49 6151 155-444
> > [email protected] | www.igd.fraunhofer.de
> >
> > ------------------------------------------------------------------------------
> > Create and publish websites with WebMatrix
> > Use the most popular FREE web apps or write code yourself;
> > WebMatrix provides all the features you need to develop and
> > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> > _______________________________________________
> > Geotools-gt2-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
> ------------------------------------------------------------------------------
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users