Chapter 18 Creating ActiveX Clients
You can deploy the ActiveX client on any number of machines. To install the ActiveX client on a client machine:
JaguarADO.tlb is obsolete and has
been replaced by JaguarORB.tlb.
Connection Host
property,
you must define (in the System Properties from the Control Panel)
a user environment variable for each server that the ActiveX client
will invoke components on. By default, the client installer creates
an environment variable JS_JAGUAR and sets its value to localhost:9000
.
The syntax for environment variable is:
JS_JaguarServerName
machine_name:iiop_port#
JS_JAGUAR
To run jagreg, open an MS-DOS Command Prompt window and enter:
jagreg /d jagproxy_dir /f registry_file [/t tlb_dir] [/o output] [/nr]
or
jagreg /t tlb_dir /f registry_file [/d jagproxy_dir] [/o output] [/nr]
where:
jagproxy_dir is the directory in which the APAS DLL resides. By default, the APAS installer places jagproxy.dll in the APAS dll subdirectory. Specify this parameter if jagproxy.dll is in a location different from when you generated the registry file. If you are not sure what location is stored in a registry file, specify the current location of jagproxy.dll when you run jagreg.
tlb_dir is the directory where the type library files reside.
output is an optional path to the directory in which updated registry file(s) are written. If you don't specify an output directory, the new registry file replaces the previous file; the previous file is saved with a .KEEP extension.
/nr is the option that prevents the new registry files from being registered. Use this option to update the .reg files without immediately applying them to the Windows Registry.
registry_file is the name of the registry file that you want to change. Use wildcards to specify multiple files, for example *.reg.
The following example updates all .reg files in the current directory, changing the type library location to d:\jag_axp and the APAS DLL location to d:\jag_axp\dll. .reg files in the current directory are updated and previous versions are saved with a .KEEP extension:
jagreg /t %JAGUAR%\dll /f *.reg /d %JAGUAR%\dll
If jagreg does not run, make sure
the JAGUAR environment variable is set to the location of your EAServer
installation and the PATH environment variable contains the location
of the Windows regedit.exe tool as well as
the EAServer bin and dll subdirectories.You can use a hyphen (
-
)
or forward slash (/
)
to delimit jagreg options. For example, both -t
and /t
are
valid.
jagreg creates a new registry file from the existing registry file and:
InProcServer32
entry
under the CLSID
key with
the path to the APAS directory.
In the registry file, the InProcServer
entry
under the CLSID
key contains
the absolute path to the jagproxy.dll. The DIR
entry
under the TypeLib
key contains
the absolute path to the type libraries directory.
If you move the APAS or type libraries, you must run jagreg again with the new settings.
You can run jagreg from a batch file to automate deployment of ActiveX clients. If running jagreg from a batch file, you can check for success by checking the JAGREG_STATUS environment variable. A value of 0 indicates success, and a value of 1 indicates failure.
Normally, jagreg runs silently. You can activate status tracing by setting the JAGREG_TRACE environment variable to "true" before running jagreg. With tracing enabled, jagreg prints status information to the screen as it runs.
Copyright © 2002 Sybase, Inc. All rights reserved. |
![]() |