Chapter 1 Introducing Jaguar CTS


Shared data interfaces

Jaguar provides shared data interfaces in each component model. These interfaces allow components to store references to shared data and lock or unlock a specific piece of data. For example, if all instances of a component write to the same file, you can store the file handle as a shared object, then lock the file before writing to it and unlock it when done.

The shared data interface has the following restrictions:

To overcome these limitations, Sybase recommends implementing a shared component that is called by other components that need to share data. Such a component can be implemented to store shared data in instance variables or in a remote database. To ensure that only a single instance of the component is created, set the Sharing option on the Instances tab of the component properties window (see "Instances tab component properties" for more information).

For information on using shared objects, see the sections referenced below:

 


Copyright © 2000 Sybase, Inc. All rights reserved.