![]()
|
|||||||||||||||||||||||||||||
HTTP
Tunnel and Redirector The
Droplets Platform uses a Web server to serve image and parameter files
to its client-side GUIs. Droplets can interoperate with any Web server
to this end, but in order to use the Droplets Platform HTTP
Tunnel (and thus communicate over port 80) or Redirector
you need to use either the Apache or IIS Web server.
The HTTP Tunnel and the RedirectorThe HTTP tunnel (HttpTunnel.pm) is a Perl module that allows the Droplets Server to wrap its protocol in HTTP (in conjunction with the Apache Web server) and communicate over port 80. This is necessary because many Internet users access their Droplets from work behind a firewall which has the Droplets protocol's native port (8194) or other configured ports closed. When there is no firewall (or the firewall is configured to accept connections over port 8194), the Droplets Server and Client speak to one another through a persistent connection over 8194 using the Droplets protocol. When this is not possible, the HTTP Tunnel wraps the Droplets protocol in HTTP and sends it over port 80 via the Web server. The HTTP Tunnel should always be installed on the same machine as its Web server. The Redirector (Redirector.pm) is a specialized tool for the serving of graphics files (GIFs and JPEGs) to your Droplets when they run as applets. It fetches images from specific URLs on behalf of the Droplets Client, because when running as an applet the Client can speak to only one server. Upon tar unpacking, the HTTP Tunnel is placed at droplets\apache\lib\perl\droplets. Move the lib\perl\droplets folder, including both of these files, to the Apache Server directory where your Perl modules are stored. Two separate directories must be in place within your Web server's file structure in order for an application skin to be served, (1) a custom application directory which contains params.txt and (2) an imagejar. In addition, if you're going to serve multiple skins from your Web server, you'll need a separate params.txt directory and imagejar for each of them, plus a skins.txt file with information on all skin directories. Creating a skin directoryFor each application skin that you serve with your Droplets application(s), there must be a corresponding directory that contains the following files:
params.txt; By default, these files should be located in a single directory located at: htdocs(or whatever your document root is)\DropletConfig\apps\AppName. If you're serving multiple skins to a single application, you should have a sub-directory for each one of these skins. Each skin directory must be indicated correctly in the Droplets application's .drp file, which is generated by one of your Web pages; you should therefore make sure that the location of your skin directory matches the imagedir location as defined in your .drp-generating Web page. See Web site Integration for more information on this. params.txt is a text file that gives the Droplets Client its appearance parameters. For more information on skinning, see the Skinning Droplets document for developers.
The imagejarThe imagejar is a zipped version of the Skin directory structure. While it's not strictly required by the Droplets Platform, it is highly recommended because it greatly speeds application performance. Using it, applications fetch all of their graphics files in a single connection (as opposed to one HTTP connection per image). If you do use an imagejar, you should have one imagejar for each of the skins that you are serving in your deployment, and they must be located in the root directory of your Apache server's docs directory, which is typically called htdocs. The imagejar usually has a descriptive name that associates it with its skin, for example:
depending on whether you're serving one or more Droplets applications.
If you do use an imagejar, you'll still have to have a separate skin directory with the application skins' params.txt file, but there will be no need to store the individual GIFs in the Web server directory.
|
|
Important
Note: the second position of the URL is reserved, and should
be kept blank as shown above.
It's possible to include online help with Droplets applications, using either online help generators or written yourself in HTML. When you do use online help with the Droplets Platform, it must be placed in the DropletConfig directory as follows:
htdocs\DropletConfig\apps\AppName\help.html
Important
note:
The root file of your online help must be named help.html
(this name is required and not optional). Many
online help generators like RoboHelp use the .htm
suffix instead of .html.
You'll thus need to change the suffix manually (or employ a redirect
script) before deploying online help with your Droplet.
If your Droplets applications feature Dripline desktop alerts to the client-side even when the hosted application is closed on the client, your Web server will also need to host a Dripline CGI page for each application that uses alerts. See the Dripline documentation for full details on how to write this page; it should have access to the Droplets UI Server's associated database, and be accessible to the client-side polling agents via a RegisterChannel() call in the application logic.
The Dripline CGIs for all of your Droplets applications should be placed in Apache Server directory's Perl module folder.
Important
Note: This location can be over-ridden in the application
logic by passing a different DriplinePollingUrl
string argument to the Droplets API's RegisterChannel
method; you should therefore double-check to make sure that your developers
haven't specified a different location in their application logic
before placing it in its default directory.
If you're experiencing problems serving Droplets over your Web server, make sure that the Web server's permissions have been appropriately set for all of the above directories and files. Any additional, custom files included by your developers that are necessary for application functionality must have appropriate Web server permissions set for them as well. If there are additional files, make sure that the Web server is set to accept executables from their directory.