Version 6.3.3
 —  Natural for Ajax  —

Setting Up Your Environment

Before you start developing and executing Natural for Ajax applications, you have to make specific definitions in your development environment.

This document covers the following topics:


Setting Up Application Designer

Currently, there is nothing to configure for Natural pages.

Top of page

Setting Up Your Development Environment for Natural

If you are practising remote development with Natural's Single Point of Development (SPoD), a Natural Development Server must be installed and activated on the remote machine.

Start of instruction setTo set up Natural Studio

  1. Ask your administrator for the host name and the port number of the Natural Development Server.

  2. Connect to the Natural Development Server. See Accessing a Remote Development Environment in the Remote Development Using SPoD documentation which is provided with Natural for Windows.

  3. It is recommended that you create a new Natural library for each Application Designer project.

Start of instruction setTo set up Natural for Eclipse

  1. Ask your administrator for the host name and the port number of the Natural Development Server.

  2. Create a new target in Natural for Eclipse, using this host name and port number. For further information, see the Natural for Eclipse documentation.

  3. When creating a Natural project, assign this target in the project properties.

Top of page

Setting Up Your Runtime Environment for Natural

The following must be installed on the remote machine where you are going to test and execute the Natural code:

Start of instruction setTo set up the runtime environment for Natural for Windows

  1. Ask your administrator for the host name and the port number of the Web I/O Interface service and the name of the batch file that is used to start up Natural sessions. A sample batch file for starting up Natural (nwo.bat) is delivered with Natural for Windows; see also Batch File for Starting Natural in the Operations documentation.

  2. Edit the configuration file <installdir>/WEB-INF/sessions.xml (the location of <installdir> depends on your application server environment) and add the following entry:

    <session id="session-name" trace="false">
        <natural_server>host-name</natural_server>
        <natural_port>port-number</natural_port>
        <natural_program>batch-file-name</natural_program>
    </session>
    

    where:

  3. In the configuration file, there is a preconfigured session that is intended to start the Natural for Ajax examples that are delivered with Natural in the library SYSEXNJX. It contains the following settings:

    <session id="Natural for Ajax Examples" trace="false">
        <natural_server>host-name</natural_server>
        <natural_port>port-number</natural_port>
        <natural_program>batch-file-name</natural_program>
    </session>
    

    Enter the settings (host name, port number and the name of the Natural startup batch file) that match your environment. Then you will be able to execute the examples from the logon page.

  4. Restart the application server.

Start of instruction setTo set up the runtime environment for Natural for UNIX

  1. Ask your administrator for the host name and the port number of the Web I/O Interface daemon and the name of the script that is used to start up Natural sessions. A sample shell script for starting up Natural (nwo.sh) is delivered with Natural for UNIX; see also nwo.sh - Shell Script for Starting Natural in the Installation documentation.

  2. Edit the configuration file <installdir>/WEB-INF/sessions.xml (the location of <installdir> depends on your application server environment) and add the following entry:

    <session id="session-name" trace="false">
        <natural_server>host-name</natural_server>
        <natural_port>port-number</natural_port>
        <natural_program>script-name</natural_program>
    </session>
    

    where:

  3. In the configuration file, there is a preconfigured session that is intended to start the Natural for Ajax examples that are delivered with Natural in the library SYSEXNJX. It contains the following settings:

    <session id="Natural for Ajax Examples" trace="false">
        <natural_server>host-name</natural_server>
        <natural_port>port-number</natural_port>
        <natural_program>script-name</natural_program>
    </session>
    

    Enter the settings (host name, port number and the name of the Natural startup script) that match your environment. Then you will be able to execute the examples from the logon page.

  4. Restart the application server.

Start of instruction setTo set up the runtime environment for Natural for Mainframes

  1. Ask your administrator for the host name and the port number of the Web I/O Interface Server.

  2. Edit the configuration file <installdir>/WEB-INF/sessions.xml (the location of <installdir> depends on your application server environment) and add the following entry:

    <session id="session-name" trace="false">
        <natural_server>host-name</natural_server>
        <natural_port>port-number</natural_port>
    </session>
    

    where:

  3. In the configuration file, there is a preconfigured session that is intended to start the Natural for Ajax examples that are delivered with Natural in the library SYSEXNJX. It contains the following settings:

    <session id="Natural for Ajax Examples" trace="false">
        <natural_server>host-name</natural_server>
        <natural_port>port-number</natural_port>
        <natural_program>script-name</natural_program>
    </session>
    

    Enter the settings (host name and port number) that match your environment. Remove the following line:

    <natural_program>script-name</natural_program>

    Then you will be able to execute the examples from the logon page.

  4. Restart the application server.

Top of page