Hi,
I have to set up several WFS services with diferent data. I read a post on
the forum about this topic and the answer was to deploy geoserver multiple
times in a web container. I was wondering if that has changed in the latest
version of Geoserver or If someone is aware of any other way to do it.
Thanks a lot.
Juan Arévalo.
--
View this message in context: http://www.nabble.com/Two-WFS-on-one-Geoserver-tf4790546.html#a13704174
Sent from the GeoServer - User mailing list archive at Nabble.com.
Something i don’t get and is of my interest:
why not deploying one several services with different data?
Otherwise it should be possible to change the web.xml to map wfs twice:
in WEB-INF/web.xml add:
dispatcher
/yourWFSURL/*
along with the other servlet-mapping
Gersh
.
On Nov 12, 2007 12:42 PM, Juan Arévalo <arevaco90@anonymised.com> wrote:
Hi,
I have to set up several WFS services with diferent data. I read a post on
the forum about this topic and the answer was to deploy geoserver multiple
times in a web container. I was wondering if that has changed in the latest
version of Geoserver or If someone is aware of any other way to do it.
Thanks a lot.
Juan Arévalo.
View this message in context: http://www.nabble.com/Two-WFS-on-one-Geoserver-tf4790546.html#a13704174
Sent from the GeoServer - User mailing list archive at Nabble.com.
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Juan Arévalo ha scritto:
Hi,
I have to set up several WFS services with diferent data. I read a post on
the forum about this topic and the answer was to deploy geoserver multiple
times in a web container. I was wondering if that has changed in the latest
version of Geoserver or If someone is aware of any other way to do it.
Nope, there is no known way to do it at the moment.
Cheers
Andrea
gershwinou ha scritto:
Something i don't get and is of my interest:
why not deploying one several services with different data?
Otherwise it should be possible to change the web.xml to map wfs twice:
in WEB-INF/web.xml add:
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>/yourWFSURL/*</url-pattern>
</servlet-mapping>
along with the other servlet-mapping
Servlet mapping is not the core of the question, the data directory
is. The quickest way to have multiple services at the same time would
be to have multiple urls mapped each to a different data directory.
But at the moment each service holds a reference to the one and
only data directory, a reference it gets on the startup.
One way to make this possible would be to change the Data class so
that it becomes an interface, put in the middle a multiplexing
class that feeds the services with a different data dir accoring
to the currently used url (which could be stored in a thread local).
Moreover, all user interface classes would have to be modified as well,
and the current set of classes that do store the configuration in
memory before you hit apply would have to be redone as well.
That's basically why we did not do it so far. We have no use case,
as OpenPlans, for it, and it's quite a big change, not something
that can be done with small isolated patches.
Cheers
Andrea
So i guess deploying 2 different servlet would solve the problem in the between…
gersh
On Nov 12, 2007 2:17 PM, Andrea Aime <aaime@anonymised.com > wrote:
gershwinou ha scritto:
Something i don’t get and is of my interest:
why not deploying one several services with different data?
Otherwise it should be possible to change the web.xml to map wfs twice:
in WEB-INF/web.xml add:
dispatcher
/yourWFSURL/*
along with the other servlet-mapping
Servlet mapping is not the core of the question, the data directory
is. The quickest way to have multiple services at the same time would
be to have multiple urls mapped each to a different data directory.
But at the moment each service holds a reference to the one and
only data directory, a reference it gets on the startup.
One way to make this possible would be to change the Data class so
that it becomes an interface, put in the middle a multiplexing
class that feeds the services with a different data dir accoring
to the currently used url (which could be stored in a thread local).
Moreover, all user interface classes would have to be modified as well,
and the current set of classes that do store the configuration in
memory before you hit apply would have to be redone as well.
That’s basically why we did not do it so far. We have no use case,
as OpenPlans, for it, and it’s quite a big change, not something
that can be done with small isolated patches.
Cheers
Andrea
gershwinou ha scritto:
So i guess deploying 2 different servlet would solve the problem in the between....
The only way is to deploy two different GeoServer instances, and have
the data directory of each set in the web.xml file (since an enviroment
variable would be picked up by both).
Cheers
Andrea