Thanks Jean, and any feedback you have on the Resource API is welcome - we
tried to cut down on much of the cut&paste code in our codebase.
--
Jody Garnett
On 23 March 2016 at 13:26, Jean Pommier <jean.pomm...@pi-geosolutions.fr>
wrote:
> Hi Jody,
>
> I think I've got it. It's pretty much operational now, and uses the
> resource way.
> I've still got to implement a few functionalities.
> I'll also have a look at FileWatcher examples, thanks for the tip.
>
> I'll try to find, in the next days, some time to write a description of
> the module, so that I can propose it as a community module...
> Thanks again,
>
> Jean
>
> *Jean Pommier -- pi-Geosolutions*
>
> Ingénieur, consultant indépendant
>
> Tél. : (+33) 6 09 23 21 36
> E-mail : j...@pi-geosolutions.fr
> Web : www.pi-geosolutions.fr
> Le 22/03/2016 17:33, Jody Garnett a écrit :
>
> On 22 March 2016 at 03:00, Jean Pommier <jean.pomm...@pi-geosolutions.fr>
> wrote:
>
>> Hi Jody,
>>
>> The links you provided gave me matters for thinking.
>> But looking at the existing code, I have the feeling that it is still a
>> work in progress, am I right ?
>>
>
> It is operational, but I will be more confident that we have caught
> everything after we see a couple more implementations.
>
>
>> Furthermore, I never used the JDBCconfig extension, but I definitely have
>> the feeling that whatever the resource management system is, the templates
>> are always file-based.
>>
>
> That is correct, so resource.file() will "unpack" the JDBC blob onto the
> local file system for the template engine to use. If you check master you
> can see a lot of work was done to remove file references and make use of
> input and output streams in the last six months so that a trip to the local
> file system is not required.
>
>
>> If this is the case, I guess I don't really have to care, for now, about
>> Resource management, since I will only deal with template files.
>>
>
> Please use resource.file() and check for changes using the api so that
> your solution can work in a clustered environment. There are a couple of
> FileWatcher examples used by the security system to detect changes to
> resources.
>
>
>> Unless I contribute to adapting the templates to this resource-based
>> management, but for now, I don't feel like so (maybe later, who knows ? It
>> doesn't look much complicated).
>>
>
> Do you have some specific code you are concerned with? There is some
> template code in geoserver already that has been converted - perhaps you
> can use it as an example?
>
>
>> Am I right ?
>> Have I missed something ?
>>
>
> Not sure, and again not sure :)
>
>
>
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel