[Geoserver-devel] JDBC Store implementation guidelines

Hello,

Is there any guideline on how to evolve an existing module to make it compatible with the jdbcstore community extension?

I need to use the feature-pregeneralized extension with this store and for the moment it does not work.

The extension currently uses the Resources.find method to find a reference to the configuration file: I assume I shall change the code to use a class derived from

org.geoserver.platform.resource.ResourceStore

instead

···

Alexandre Gacon

Alexandre:

The original proposal had example code snippets; and I did my best to add very good javadocs for using ResourceStore.

···


Jody Garnett

Thanks Jody for the input. I have already implemented a first version (which of course does not work) and I will have a look at the examples to see what I did wrong.

Alexandre

···

Alexandre Gacon

If you make a draft PR I am happy to provide input. I presently do not have any customers using JDBCStore but I am happy to support your troubleshooting.

If I remember it really just wants a data structure for configuration; and it needs to callback to the geoserver catalogue to look up data stores being referenced.

Good fun.

···


Jody Garnett

I will do that after doing some additional investigation on my side.

Alexandre

···

Alexandre Gacon

Jody, a draft PR is available here : https://github.com/geoserver/geoserver/pull/6121.

···

Alexandre Gacon