Using the Database Class Utilities
Page 3 of 3

Forcing Database Class Loading for an Application

DBClassLoad is an application bootstrap program that application-side logic can use to force Cloudscape class loading. Use the bootstrap program instead of invoking your application on the command line if the application uses classes stored in the database.

NOTE: If you are running in a Java 2 environment, and you attempt to load classes from a digitally signed jar file, Cloudscape will try to validate the signature, and generates an exception if it cannot. For more information, see the Cloudscape Developer's Guide.

The fully qualified program name is COM.cloudscape.util.DBClassLoad.

Typically, you would invoke your class like this:

java COM.cloudscape.util.DBClassLoad databaseConnectionURL
    yourclassname
classarguments

The databaseConnectionURL refers to the database in which the classes are stored.

In cases when user authentication is turned on and you are using database-level class loading, you will probably not want to put the user name and password on the command line in the database connection URL. In that case, you can invoke the class like this:

  • Create a "wrapper" class. Don't store this class in the database.
  • In that wrapper class, ask the user to input his or her user name and password.
  • At this point, you have two choices. Do one of the following:

For more information about DBClassLoad, see the javadoc for COM.cloudscape.util.DBClassLoad.