Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

Introduction

The JADE profiles can be cascaded or included by other profiles. This feature enable to create generic fragments i.e. server connection settings, background service etc.
The other JADE profiles then can include base fragments. The cascaded profiles enable the users to create generic profile fragments. The fragments can be included as a target or source settings, thus same server can be configured as source or target without duplicating the server settings i.e. fragment.

Managing settings in one profile

JADE settings managed in one profile

[copy_localhost2server_with_cs]
file_spec                         = .*
operation                         = copy
verbose                           = 9
;;
source_protocol                   = local
source_host                       = localhost
source_dir                        = ${TEMP}/source
source_make_dirs                  = true
;;
target_use_credential_Store       = true
target_CredentialStore_FileName   = C:\Program Files\sos-berlin.com\jobscheduler.1.6.4043\djsmp02_4445\examples\keepassX-test.kdb
target_CredentialStore_password   = testing
target_CredentialStore_KeyPath    = sos/server/mp.sos
;;
target_dir                        = /home/test/inbound
target_make_dirs                  = true
target_protocol                   = ftp
target_transfer_mode              = ascii

Managing settings in cascaded profiles with multiple fragments

JADE settings managed with cascaded profiles

[Keepass_DataBase]
 use_credential_Store       = true
 CredentialStore_FileName   = .\examples\keepassX-test.kdb
 CredentialStore_password   = testing

[keepass_mp_ftp]
 CredentialStore_KeyPath  = sos/server/mp.sos
 protocol                 = ftp

[localhost_default]
 protocol = local
 host=localhost

[copy_localhost2server_with_cs2]
 file_spec                      = .*
 operation                      = copy
 verbose                        = 9
 ;;
 source_include                 = localhost_default
 source_dir                     = ${TEMP}/source
 source_make_Dirs               = true
 ;;
 target_include                 = Keepass_DataBase, keepass_mp_ftp
 target_dir                     = /home/test/inbound
 target_make_dirs               = true
 target_transfer_mode           = ascii

JADE profile from a settings file

The jade_settings.ini file can be called from JITL and from JADE CLI, thus provide a single source of file transfer settings to JobScheduler JITL Jobs and to command line batch applications.

JobScheduler jade_copy_localhost2server_with_cs.job.xml job

The JobScheduler jade_copy_localhost2server_with_cs.job.xml JITL job can be configured with two parameters - profile and settings:

<?xml version="1.0" encoding="ISO-8859-1"?>

<job  title="Localhost to FTP server copy (API Job for JobScheduler Advanced Data Exchange)" order="no" name="jade_copy_localhost2server_with_cs">
    <settings >
        <log_level ><![CDATA[debug9]]></log_level>
    </settings>

    <description >
        <include  file="jobs/jadeJob.xml"/>
    </description>

    <params >
        <param  name="profile" value="copy_localhost2server_with_cs"/>
        <param  name="settings" value="${SCHEDULER_HOME}/examples/jade_settings.ini"/>
    </params>

    <script  language="java" java_class="sos.scheduler.jade.JadeJob"/>

    <run_time />
</job>

JADE Command Line Interface (CLI) client example

The jade_settings.ini profiles can be called from JobScheduler JITL job or from the JADE CLI client.
See the JADE CLI client example below.

C:\Program Files\sos-berlin.com\jade\jade_client_1.6.4043\bin>set CS_HOME=C:\Program Files\sos-berlin.com\jobscheduler.1.6.4043\djsmp02_4445\examples

C:\Program Files\sos-berlin.com\jade\jade_client_1.6.4043\bin>jade.cmd -settings="%CS_HOME%"/jade_settings.ini -profile=copy_server2localhost_with_cs
  • No labels
Write a comment…