Working with Java Data Types in a Server
Page 2 of 4

Deploying Java Classes

Using Java types in a database means one or more of the following:

  • storing Java objects in the database
  • referring to a class in SQL-J statements or views
  • referring to a class in work units or database-side methods

For you to use Java types in a database, the .class files for those types must be available to both the server and the client. This means the .class file must be installed on both machines and included in the class paths for both the client and the server. If the client and the server are on different machines, copy the .class, .zip, or .jar files onto both machines. The classes must be exactly the same on both machines. For the client, use a class path to the class files on the client machine, and for the server, use a class path to the class files on the server machine.

NOTE: For the server, the classes can be stored in the database itself. See the Cloudscape Tools and Utilities Guide for details.

For more information on Java data types, see the Cloudscape Developer's Guide.

NOTE: Cloudscape synchronization provides a way to distribute Java classes. If you have installed Cloudsync, see the Cloudscape Synchronization Guide for details.