Hi David,
And welcome to the labyrinthian world of MapXtreme ;-)
I've been wandering this maze for a long time and found many traps and dead
ends.
But I'll try to answer your questions to the best of my knowledge.
Please correct me anyone if I'm wrong on some points.
Short answers (for those others who found the exit) : Yes, yes, yes, yes
and no :-)
Little longer answers (for all others still trapped inside) :
1+4:
Yes, all projects must be named MapXtreme. This is a license requirement
I'm told.
Unfortunately, renaming the project in HAHTsite IDE will also rename the
directory (!)
But fortunately you can then rename the directory to anything in Windows
Explorer.
2:
Yes (and no). There may be hundreds of site hosts in your system, each
"publishing"
a set of known sites. You need read/write to the directory (e.g.)
"c:\hahtsite\sites\" either
by a LAN share or by FTP. You can then define new sites on each host as you
see fit.
Ideally the single server publishes all neccessary site definitions about
itself,
but you may also keep them locally on your development machine.
A known trap: the upload paths for the dynamic content is stored as local
paths by default
and they can only be edited to FTP-paths via the HAHTsite/HTML admin login
!
3:
Yup.
You can use the Web Server Utility to change/add different site components.
Note that it autodetects IIS, but then it assumes publishing happens to the
main directory.
Beware of previous installations of e.g. MapXsite. And note these traps:
Each new "Web Server" will allow several transfer specifications, but only
the first is used.
Each new "HSRUN" will copy the complete hsrun "package" to the specified
directory,
possibly overwriting previous installations.
5:
No. You may indeed publish any number of MapXtreme projects to the same
server, BUT not
when you publish to the (default) subdirectory "%project%" (as all are
named "MapXtreme").
You need to enter a hardcoded name into the site definition, and refrain
from using %project%
and %user% at all. These only make sense in a HAHTsite (non-MapXtreme)
environment
(without the naming requirement) and in an intranet and/or educational
setting (each login-user
generates his/her own "project") respectively.
And yes, you end up with a site definition for each project ! Each naming a
different hardcoded subdir.
>So what is the recommended approach ...
Both work Ok. A lot more work in setting up the separate server/development
scenario,
but I personally hate developing, sitting by the server.
>Or what about setting up lab exercises for use in a classroom environment?
See the %user% discussion under (5)
>Am I missing something basic here?
No, but the MapXtreme as a single package is an illusion. You get 2-4
different (sometimes barely)
connected items. You need a lot of experience to grasp the complete
picture.
Hope this helps.
Regards
Lars Nielsen
**********************************************************
Lars Nielsen [EMAIL PROTECTED]
Development Manager, Special Products Contact
Kampsax Geoplan Odense http://www.mapinfo.dk
Authorized MapInfo Distributor in Denmark & Norway
Address: Rugaardsvej 55, DK-5000 Odense C
Telephone: +45 6313-5000 Facsimile +45 6313-5090
**********************************************************
"David M Haycraft" <[EMAIL PROTECTED]> on 26-05-99 10:01:51
To: [EMAIL PROTECTED]
cc:
Subject: MI MapXtreme and HAHTsite
To the MapXtreme/HAHTsite developer community.
Can anyone please confirm the following assertions and conclusions about
MapXtreme/HAHTsite.
1. A HAHTsite development project is a single folder full of source code
files on a development machine. The folder contains items such as .htm and
.hbs files plus an .hpr file containing the name of the project.
For example c:\program files\mapinfo\mapxtreme\project 2.02\haht\hello
world is a folder containing a file called HelloWorld.hbr. HelloWord.hbr
contains <PROJECT NAME="MapXtreme" ...>, so the NAME of this project is
MapXtreme, not HelloWorld.
2. Each HAHTsite project has a related publication site on a server
machine. A HAHTsite publication site is a pair of folders resident on the
server, one to hold static document files such as .htm and .gif files and
the other to hold the active program files to be processed by hsrun.exe,
namely .htx, .hbx and .hbb files.
(This split is to permit implementation of advanced configurations of
HAHTsite in which the application server and web server actually run on
different machines.)
3. In a default single server configuration, (HAHTsite application server
and web server both on the one box, HAHTsite Server installed using all
defaults), for a project named haht_intro31 the static site folder will be
c:\inetpub\wwwroot\haht_intro31 and the dynamic site folder will be
c:\hahtsite\single\approot\haht_intro31.
4. For a project that involves MapXtreme functionality, the project name
must be MapXtreme.
The MapXtreme 2 Developers Guide for Windows NT, August 1988 says, on page
21, "All of your HAHTsite projects for MapXtreme must be named
MapXtreme.hpr in order to run correctly with the HAHTsite Application
Server.
Experimentally, this seems to be the case. If you use any other project
name, like "HelloWld" for example, at runtime you get the error message:
HAHTsite 3,.1 Single Server reports the following Error:
the application page HS_... could not be run. The HAHTtalk (tm)
application file is not valid.
5. I conclude from this that you cannot easily host more than one distinct
MapXtreme application on the same server at any time. For example if you
try publishing all the sample projects provided with MapXtreme, namely
Hello World, Demographics, Find Nearest and so on, each one will OVERWRITE
the previous one in the pair of site folders c:\inetpub\wwwroot\mapxtreme
and c:\hahtsite\single\approot\mapxtreme.
So what is the recommended approach for hosting both test and production
versions of the same application on a single server?
Or what about setting up lab exercises for use in a classroom environment?
Am I missing something basic here?
David M Haycraft Phone/Fax: 61 + 2 + 6231 8104
Information Analysis Assocs P/L Mobile: 0412 001 134
ACN 085 516 105 Email:
[EMAIL PROTECTED]
1 Cumming Place, Wanniassa Web:
www.acslink.aone.net.au/actaa/iaa.htm
A.C.T. 2903, Australia A MapInfo Partner
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]