22.09.2013 Views

NetCOBOL for SPARC Architecture SAF Subroutines User's Guide

NetCOBOL for SPARC Architecture SAF Subroutines User's Guide

NetCOBOL for SPARC Architecture SAF Subroutines User's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

72 Chapter 4. Generating and Executing a Web Application<br />

• Load specification of Web application when NES is started<br />

Add the following description after the <strong>SAF</strong> director definition in obj.conf file.<br />

Init fn="COBOL_Init" load=" dll name, entry-name [;dll name, entry-name]…"<br />

[env="environment setup file"]<br />

[sev="log output severity of <strong>SAF</strong> director”]<br />

In the following example, settings are as follows:<br />

•<br />

•<br />

•<br />

The folder to which the Web application is allocated is C:\COBAPL.<br />

The Web application name and entry-name are <strong>SAF</strong>SMPL1.DLL, SAMPLE 1, and<br />

<strong>SAF</strong>SMPL2.DLL, SAMPLE2.<br />

The environment setup file is C:\COBAPL\SETUP1.BAT and log output severity of<br />

<strong>SAF</strong> director logging is set to 1.<br />

Init fn= "COBOL_Init"<br />

load="C:/COBAPL/<strong>SAF</strong>SMPL1.dll,SAMPLE1;C:/COBAPL/<strong>SAF</strong>SMPL2.dll,SAMPLE2"<br />

env="C:/COBAPL/SETUP1.BAT" sev="1"<br />

Note: For descriptions of the environment setup file, see "COBOL_Init".<br />

• Specifying Web application execution<br />

Specify the Web application to be started in response to each request. Add the<br />

following description to an adequate position in lines starting with “Service” in<br />

obj.conf.<br />

Service type="MIME type" fn="COBOL_Per<strong>for</strong>m" app="DLL name, entry-name"<br />

[sev="log output severity of <strong>SAF</strong> director"]<br />

Note: Add the description above to the position enclosed with tags and . When using another object tag, see the NES<br />

manual. Moreover, if two or more Web applications can be started, the description<br />

above of each application is added. At this time, the MIME type specifies the one<br />

different in each Web application.<br />

In the following example, settings are as follows:<br />

• MIME type is "magnus-internal/cob-app1."<br />

• The folder to which the Web application is installed is C:\COBAPL.<br />

• The Web application name and entry-name is C: \COBAPL\<strong>SAF</strong>SMPL1.DLL,<br />

SAMPLE 1.<br />

• The log output severityof the <strong>SAF</strong> director is set to 1.<br />

service type="magnus-internal/cob-appl"<br />

fn="COBOL_Per<strong>for</strong>m" app="C:/COBAPL/<strong>SAF</strong>SMPL1.DLL,SAMPLE1"<br />

sev="1"<br />

Note: A character-string "magnus-internal/" must be registered with the NES as a<br />

MIME type.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!