Hello GN users
I've installed GN 2.10.0 on a debian server
I'm planning to run several GN instances on the same machine
I want to use override capabilities in order to run these instances with the same file hierarchy (i want to avoid file duplication, as 95% of the file hierarchy will remain the same within each instance)
I will then be able to follow GN updates in a very simple way: stop tomcat, deploy the new GN archive, start tomcat
My first instance is working fine. I created an override file (customization, for instance, only concerns database parameters, data directory) and told tomcat to use it for GN by creating a setenv.sh with one variable declared: CATALINA_OPT="-Dgeonetwork.dir=... -Dgeonetwork.jeeves.configuration.overrides.file=..."
Is there a way to declare a new instance (i.e. a new override file) and make it run by the same tomcat, using a new URL ?
First of all, does it make any sense ?
Help would be greatly appreciated...
Philippe
<http://www.paca.inra.fr/emmah>
Hi Philippe,
2013/8/30 Philippe Clastre <Philippe.Clastre@anonymised.com>
Hello GN users
I've installed GN 2.10.0 on a debian server
I'm planning to run several GN instances on the same machine
I want to use override capabilities in order to run these instances with
the same file hierarchy (i want to avoid file duplication, as 95% of the
file hierarchy will remain the same within each instance)
I will then be able to follow GN updates in a very simple way: stop
tomcat, deploy the new GN archive, start tomcat
My first instance is working fine. I created an override file
(customization, for instance, only concerns database parameters, data
directory) and told tomcat to use it for GN by creating a setenv.sh with
one variable declared: CATALINA_OPT="-Dgeonetwork.dir=...
-Dgeonetwork.jeeves.configuration.overrides.file=..."
Is there a way to declare a new instance (i.e. a new override file) and
make it run by the same tomcat, using a new URL ?
I'm not sure you can use the same webapp and start them with different
overrides.
What I usually do, is create maven profiles to build custom war for each
nodes (with custom web.xml basically to change webapp name), deploy the WAR
files and set CATALINA_OPT to use on data dir per node like you do for each
war.
The other options would be to use GéoSource which use to include Jeevlet[1]
which allows to start many instances with the same webapp. In the latest
version (2.9.x), Jeevlet was replaced by a webapp configuration were you
can only duplicate the WEB-INF folder to configure each instances. AFAIK,
this is almost working so maybe it's better to wait for the next version
before digging into that direction. Maybe that feature could be of interest
for GeoNetwork too.
Cheers.
Francois
[1] http://www.geosource.fr/docs/jeevlet/jeevlet.html
First of all, does it make any sense ?
Help would be greatly appreciated...
Philippe
<http://www.paca.inra.fr/emmah>
<http://www.paca.inra.fr/emmah>
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork