Hi tenesse,
Here is my piece of idea which worked.
I needed the same solution(Shapeserver (running on one PORT),
serving multiple shape files - ON DEMAND FROM CLIENT.
In case you just need multiple shapeservers each running on a
unique PORT, the solution is straigth forward. You just need
to run multiple instances of Shapeserver(look at ShapeServerStarter,
LinkServerStarter) giving shapefiles as argument. At the client
just create several instances of LinkLayer with properties like
linklayer1=com.bbn.openmap.layer.LinkLayer
linklayer2=com.bbn.openmap.layer.LinkLayer
In case of my kind of solution -
Each time a linkclient startsup(linklayer) we need it to tell the
server(ShapeServer) what shapefile it expects.
The linklayer through a properties(say linklayer1.shapefile=worldmap)
can figure out what shapefile it wants and then as soon as it opens
a "ClientLink" connection send this string "worldmap" to the serverstarter.
At the server starter "As soon as you do an accept()" wait for this
ID -string and based on this ID instantiate a ShapeServer with the
corresponding shapefile as argument.
NOW HEREON THE LINKCLIENT IS TIED TO THE SHAPE FILE TILL SESSION ENDS.
Files to look.
LinkLayer
clientLink
LinkManager
LinkServerStarter.
hope this helps
rajesh.m
With some minor
changes to ShapeServer
-----Original Message-----
From: owner-openmap-users@bbn.com [mailto:owner-openmap-users@bbn.com]On
Behalf Of Tennessee Leeuwenburg
Sent: Friday, 13 July 2001 8:00 AM
To: openmap-users@bbn.com
Subject: Link server
Hi,
I'm just about to embark on my next modification - to get the shape server
to be able to serve up multiple shape files. Is this likely to be hard? Any
idea the approach I should take?
I thought perhaps I could add something to the communication which would
tell the shapeserver which file to use as the source, but how will the
server preserve state? I don't really understand the link all that well.
Does the shapeserver store things like current view / projection, etc, or
just respond to requests for data? Will I really need a different server
for each shapefile I want to use?
Perhaps I could have a server that ran interference on the port, so to
speak, then passed the message onto whichever server is appropriate?
-Tennessee
==============================================
This email contains information which may be useful. The views
expressed within may or may not be the views of the author.
==============================================
-Tennessee Leeuwenburg, Silver Stream Pty Ltd
0418 300 881
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"] -- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Fri Jul 13 00:53:22 2001
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:31 EDT