[Top] [Prev] [Next] [Bottom]
[Contents]
Creating Applications
CGI Programs
When you are building a CGI program (the default for Sapphire/Web, this is what all of the examples produce) the CGI URL setting in the Test and Release pages should be something akin to this:
http://<server name>/<scripts directory>/#proj
For example,
http://heartofgold/scripts/myproject
The reason for using this in all the examples is that a CGI program runs once and exits: Application Servers do not exit unless explicitly instructed to. Thus it is much easier to learn and test with a CGI version of a program than with an Application Server. Once you have tested your project you can easily convert it to an Application Server.
Oracle Cartridges are a form of DLL that can be linked to at runtime to provide all the functionality of an Application Server. Cartridges have a number of capabilities, including the possibility of invoking one from another. For more information see the Oracle Corp. web site www.oracle.com.
To deploy an Oracle Web Cartridge you will need an Oracle Web Server (available at the time of writing for Solaris and Windows NT systems) to deploy to.
If your projects contain C or C++ code that you have written you should read the section of this file titled "Changing existing CGI code to work with Application Servers"
After the above steps are taken you can now build a Sapphire project to create a Web Cartridge. Check these settings in your Project Options:
Makefile.$SA_CGI_TARGET: this should be ORACLE
.
Makefile.$SA_DEPLOYMENT_TARGET: drop this down and select WRBAPI2x
.
Makefile.exeSuffix: remove this setting
Make sure that your database settings are all correct.
Sapphire/Web will generate a .DLL file that you must copy to the directory that your Oracle Web Server expects to see cartridges in. You must then register your cartridge with the server.
This is a schematic of a possible Web Site, showing the relationships between the various types of application that you can use Sapphire/Web to generate.![](ch04a2.gif)
- Both the PlugIn and the Application Server Manager use the Config. File to determine how an Application Server should be started and communicated with.
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.