|
Samples |
This chapter describes how to configure and run the Director Examples application. It contains the following sections:
The Director Examples application demonstrates many common coding techniques for Director applications. It includes the following examples:
The Director Examples application is packaged as a WAR file called DirectorExamples.war. To use the application, you need to add this WAR file to a Director EAR project by using the samples template.
To configure the Director Examples application to run on SilverStream:
Start your SilverStream eXtend Application Server with the Autonomy JAR file (autonomyJNI.jar) in the classpath. For example, if you installed Director under c:\Program Files\SilverStream, you could use this command to start the server:
silverserver +cp:p c:\Progra~1\SilverStream\eXtendDirector\autonomy\autonomyJNI.jar
Add the Autonomy dynamic library (autonomyJNI.dll) to your environment. To do this, you need to add the directory containing the autonomyJNI.dll file to the PATH environment variable. For example, if you installed Director under c:\Program Files\SilverStream, you would add this entry to the PATH environment variable:
c:\Program Files\SilverStream\eXtendDirector\autonomy
Create a new Director database. This database will contain Director application data such as content and user information.
TIP Give the data source a name other than DirectorExamples.
In eXtend Workbench, create a Director EAR project. Select the default values on all panelsexcept as indicated below:
In eXtend Workbench, select Project>Director EAR>Setup. Select the default values on all panels, except as indicated below:
|
Panel |
What to specify |
|---|---|
|
Setup Option |
Select Add. |
|
Template Location |
Specify the following template location: |
|
Subsystem Selection |
Select DirectorExamples. |
Create a deployment plan for the project, using the following settings:
Create a server profile for deployment. If you're planning to deploy to SilverStream, specify SilverStream 4.0 as the server type.
Deploy the EAR to the SilverMaster database (for example, SilverMaster40).
To run the Director Examples application:
Type the following URL in your browser:
http://localhost/DirectorExamples
The Director Examples home page appears:
To view the source code for a particular example:
Click Source in the upper-right corner of the example page.
The Director Examples application lists the source files for that example.
To see a particular source file, click the link for that file.
To view the documentation page for a particular example:
Click Docs in the upper-right corner of the example page.
The Director Examples application displays a page that provides a description of the coding techniques used to implement the example.
|
Samples |
Copyright © 2002, SilverStream Software, LLC, a wholly owned subsidiary of Novell, Inc. All rights reserved.