Well Stefan, it doesn't seem so basic. I think I know what you are after.
It seems you want to have both in your geowebcache config. Layers of the
geoserver instance and layers defined in the geowebcache.xml.
I think you can have that, the key is the geowebcache-core-context.xml
The important bit is at the bottom. Call the gwc with both a gwcXmlConfig
and gwcWMSConfig
<bean id="geowebcacheDispatcher"
class="org.geowebcache.GeoWebCacheDispatcher" destroy-method="destroy">
<constructor-arg ref="gwcTLDispatcher"/>
<constructor-arg ref="gwcGridSetBroker"/>
<constructor-arg ref="gwcStorageBroker"/>
<constructor-arg ref="gwcXmlConfig"/>
<constructor-arg ref="gwcWMSConfig"/>
<constructor-arg ref="gwcRuntimeStats"/>
<property name="defaultStorageFinder" ref="gwcDefaultStorageFinder"/>
</bean>
On top you need to define the xml config ()
<bean id="gwcXmlConfig" class="org.geowebcache.config.XMLConfiguration">
<constructor-arg ref="gwcAppCtx" />
<constructor-arg value="/Tomcat
7_NON_spatial/webapps/geowebcache##1.5/WEB-INF" />
<property name="template" value="/geowebcache.xml">
<description>Set the location of the template configuration file to
copy over to the
cache directory if one doesn't already exist.
</description>
</property>
</bean>
and a WMS config (which would be your geoserver)
<!-- <bean id="gwcWMSConfig"
class="org.geowebcache.config.GetCapabilitiesConfiguration">
<constructor-arg ref="gwcGridSetBroker">
</constructor-arg>
<constructor-arg
value="http://services.land.vic.gov.au/geoserver_pWMS/ows?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities">
<description>The URL to the WMS GetCapabilities document, notice &
, port is normally 8080</description>
</constructor-arg>.............................
and you get both. I think this would be how should work (Sorry cannot try it
before the weekend, but I will and tell you the result)
Cheers
Christian
-----
____________________________
Dr Christian Maul
Project Manager
Information Services Branch
Department Environment and Primary Industries
Level13, Marland House, 570 Bourke Street
Melbourne 3000
PO Box 500, East Melbourne Vic 3002
Telephone: +61-3-8636 2325
Telefax: +61-3-8636 2813
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Very-basic-question-Geowebcache-Geoserver-tp5133923p5134492.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users