Creating distributed applications

In a distributed application, parts of the application logic run on one machine, and parts run on another machine. With Sybase IQ, you can create distributed Java applications, where part of the logic runs in the database server, and part on the client machine.

Sybase IQ is capable of exchanging Java objects with an external, Java client.

Having the client application retrieve a Java object from a database is the key task in a distributed application This section describes how to accomplish that task.

Related tasks

In other parts of this appendix, we describe several tasks related to retrieving objects, but these tasks should not be confused with retrieving the object itself. For example:

Requirements for distributed applications

There are two tasks in building a distributed application.

StepsBuilding a distributed application

  1. Any class running in the server must implement the Serializable interface. This is very simple.

  2. The client-side application must import the class, so the object can be reconstructed on the client side.

These tasks are described in the following sections.