Previous PageNext Page

12.1.2 Registering a Java Class as a COM Component on UNIX

Note:

If you are using the Linux version of Chili!Soft ASP, check the next section, Registering a Java Class as a COM Component on Linux

The cbreg command line tool is used to create a registry entry mapping a given ProgID to a Java class. This is similar to the javareg tool for the Microsoft JVM. For example, to register the Table.class in the package Database on the CLASSPATH, run cbreg as follows:
 

cbreg Db.Table Database/Table.

After running cbreg, a Table object can be constructed in a client script by using:
 

set table = Server.CreateObject("Db.Table")

Any class registered using cbreg must have a public default constructor that is used to instantiate the class. The ASP engine must be stopped to perform any changes to the registry; this applies to all cbreg calls.
 

Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page