APPLICATION DESIGN


Setting up shared applet resources
For large Java(TM) applets with multiple files, consider storing some of the related files as shared resources in the database. When you set up files as shared resources, all the applets can use a single copy of the file, instead of each applet storing its own copy. Then, if a file requires updating, you only need to update one file. For applications that include multiple databases, one database can hold shared resources for use in all the related databases.

To create a shared applet resource

1. Select the database where you want to set up the shared resources.

2. Choose Resources - Applets.

3. Click "New Applet Resource."

4. In the "Base Directory" field, enter the path where the Java(TM) applet files are stored.

5. Select the files you want to set up as shared resources from the "Available Java Files" list and click Add/Replace file.

6. Click OK and enter a name. Click OK and IBM® Lotus® Domino(TM) stores all the files as a shared resource with the name you entered.

7. (Optional) Double-click the shared resource to open the Java Resource Properties box. At the Basics tab, you can rename the shared applet and give it an alias. You can also view the files that make up this applet.

To use a shared applet resource

You can include a shared applet resource from the current database, or from another database on your desktop.

1. Open a document and click in a rich text field.

2. Choose Create - Java Applet.

3. In the Create Java Applet dialog box:

4. Click Locate to see all related files and shared resources for the applet.

5. Select "Shared Resources" in the Browse list, specify the database where the shared resource resides, and select the related applet files. Click Add/Replace File.

6. Click OK twice.

See Also