
Here is an example of a script that supports three brokers:
[General]
ErrorLogFile=C:\tunnel\logs\jsihttp_error.log[DevBroker]
HostName=localhost
Port=8001
Timeout=10
TraceLogFile=C:\tunnel\logs\dev_trace.log
TraceMode=off[TestBroker]
HostName=localhost
Port=8003
Timeout=10
TraceLogFile=C:\tunnel\logs\test_trace.log
TraceMode=on[RelBroker]
HostName=sun5
Port=8001
Timeout=30
TraceLogFile=C:\tunnel\logs\rel_trace.log
TraceMode=off
ex: ErrorLogFile=C:\tunnel\logs\jsihttp_error.log
ex: [DevBroker]This broker name should be the same as the "BrokerName" configured in the tunnel.ini for the broker that it references. You can use any names that you like. Use only letters, numbers and underscores (no spaces).
2. HostName
Within each broker section, specify the hostname or IP address of the
host on which that tunnel broker is being run. For brokers running on the
same host as the web server, you may use "localhost". If you use a hostname,
be sure the server can translate it to an IP address. You can
test this by doing a "ping [hostname]" from a DOS command line. Hostnames
are defined in the etc/hosts file or by a local name server.
ex:3. Port
HostName=localhost
HostName=192.168.1.25
HostName=TestLinuxBox
ex: Port=8001If you are running multiple tunnel brokers on the same host, each one must use unique values for its AdminPort and BrokerPort, as defined in each broker's tunnel.ini and in the corresponding section of jsihttp.ini.
For example:
broker1 could use AdminPort=8000 and BrokerPort=8001In other words, the combination of HostName and Port must be unique for each defined broker. If two brokers have different HostName values, they could use the same ports on those two hosts. However if two brokers have the same HostName values, then they must have different Port values.
broker2 could use AdminPort=8002 and BrokerPort=8003
etc.
There is no practical limit to the number of tunnel brokers that can be defined in the jsihttp.ini file.
4. Timeout
Another new parameter allows control of the timeout period in seconds
that the jsihttp.dll will wait after sending a request to a broker. If
no response is received within the specified number of seconds, the broker
will time out, log an error and return an error to the client. The value
is specified as an integer number of seconds.
ex: Timeout=60This assigns a 60 second (one minute) timeout value for this broker.
http://www.abc.com/scripts/jsihttp.dll/ConfigDataand it will echo all the configurations from the ini file that were present at startup. This will show how the settings were interpreted by the script.
http://www.abc.com/scripts/jsihttp.dll/Broker=DevBroker/statusas.p?ProcName=GetStatusThis value is in the startup HTML parameters for Jargon ReaderX and for Jargon Reader (in applet mode). For Jargon Writer and Jargon Reader (in application mode), it is in the preferences.ini file.
The script parameter value used to be just:
scripts/jsihttp.dllNow it is:
scripts/jsihttp.dll/Broker=[broker name]example:
scripts/jsihttp.dll/Broker=devbrokerThere is no default, you must specify the "Broker=" portion.
The broker name MUST exactly match the broker name specified within
square brackets in the jsihttp.ini file, including upper/lower case spelling.
To do multiple brokers within one "tunnel" folder:
1. Make a copy of tunnel.ini for each broker that you want. Each ini
file will use a separate set of ports (broker and admin).
Ex: dev.ini test.ini rel.ini2. Make copies of the server.bat, gui.bat, stop.bat, status.bat scripts for each of these brokers. In server.bat and gui.bat, change the last parameter from tunnel.ini to the new ini file name for that broker. In stop.bat and status.bat, change the Admin Port from 8000 to whatever port you use for that broker.
Then you can run multiple brokers, one for each ini file that you define.
The jsihttp.dll will communicate with each broker using the broker port
number in that broker's section of jsihttp.ini, and that port number must
match the broker port number defined in that brokers copy of tunnel.ini