How to: |
iWay Service Manager provides templates that you can use as is, or edit to create a custom configuration. When you install iSM, it includes the following configurations:
You must never modify the raw configuration. It is reserved as the bootstrap configuration for creating other configurations.
You can base your new configuration on one of these two templates or on another existing configuration. To avoid conflicts with other configurations, the system automatically assigns the next available port as the console port for the new configuration. This port is used for internal communication and cannot be accessed directly. You can override this value. If you override the port with a value already assigned to another configuration, then you are prompted to make a different selection.
Based on the template you use, the configuration software generates the new configuration and the required folders and files. You can also add other components to your configuration. Before you can use a configuration effectively, you must define its channels and business logic.
To create a configuration:
In order to take advantage of performance enhancements, Service Manager configurations can be installed to run as services in separate Java processes. In order to do this:
To add a configuration to iWay Service Manager:
The Server Management pane opens.
The Add Configuration pane opens.
The new configuration, TestConfig, appears in the Configurations list as shown in the following image.
After your configuration is created, you can create a Windows service to start the configuration. This is optional.
To create a Windows service that can be used to start a new configuration:
C:\Program Files\iWay60\bin
The iwsrv command starts iSM in a command window and allows you to create a Windows service.
iwsrv config_name -s install
To create a service with Java running in a separate process, type
iwsrv config_name -s install -l java
where:
Is the name of the configuration for which you are creating a service.
A message appears, indicating that the service was installed successfully.
Your next task is to start the configuration as a service. For more information, see How to Start a Configuration as a Service on Windows.
The full syntax for the iwsrv command is:
iwsrv [config_name|base] [-s service|start] [options]
where:
Is the name of the server configuration that is loaded for this instance. base is the default value.
Is the name of the service that is executed. Valid values are:
start: Starts the server configuration (default).
stop: Stops the server configuration.
install: Installs the server configuration.
remove: Removes the server configuration.
Specifies tracing or server back-up information. Valid values include:
-c: Turns tracing on. In this mode, you can display useful error messages on the console. For example, you can display a message that says the Java Runtime Environment (JRE) is not properly installed. For example:
iwsrv.exe base -s start -c
-d: Limits tracing to debug only, for example:
iwsrv.exe base -s start -d
-b: Indicates that Service Manager is a back-up server, for example:
iwsrv.exe base -s start -b
-l: In order to improve server performance, iwsrv.exe can load Java in a separate process, and use the JVM options, NT dependencies, and other preferences found within the iSM configuration that are configured through the console. For example:
iwsrv.exe base -s start -l java
The -l option can also be used to specify a script file that defines the run-time preferences. This script file must be located in the iWay 6.0.1 SM installation directory, for example:
iwsrv.exe base -s start -l iWay60.cmd
Both of the above uses of -l will force the service to load Java in a separate process. When the service is stopped, both iwsrv.exe and java.exe are terminated.
To start a new configuration as a service on Windows:
The Services window opens.
The service status changes to Started. The default start-up type is Automatic.
To start a new configuration as a service on a platform other than Windows:
On UNIX, this file is called:
startservice.sh
On other non-Windows platforms, the name may vary.
#!/bin/sh
#####################################################################
#
# Init
# Setup global variables and signal handling
#
# Edit following lines to point to install dir and change user ID"
IWAY60=/WorkSource/iWay60/
IWAYUSER=root
IWAYCONFIG=baseMOD=""
cd $IWAY60/config/$IWAYCONFIG if test `uname` = 'OS400'; then java $REMDBG -cp $CLASSPATH -DIWAY60=$IWAY60 com.ibi.service.edaqmSilentService -config $IWAYCONFIG >> $IWAY60/serviceOut.txt &elif test `uname` = 'OS/390'; then java $REMDBG -cp $CLASSPATH -DIWAY60=$IWAY60 com.ibi.service.edaqmSilentService -config $IWAYCONFIG >> $IWAY60/serviceOut.txt &else su $IWAYUSER -c "java $REMDBG -cp $CLASSPATH - Diwaysoftware.af.idocument=com.ibi.edaqm.XDDocument -DIWAY60=$IWAY60 com.ibi.service.edaqmSilentService -config $IWAYCONFIG >> $IWAY60/serviceOut.txt &"fi
The service is started.
iWay Software |