Contents

Fiorano 11 has a concept of profile based server such as profile1, profile2, and haprofile. All these profiles can be run either as Fiorano Enterprise Server or Fiorano Peer Server by specifying their mode as 'fes' or 'fps' respectively.

These profiles can be run as NT services on Windows NT, Windows 2000, Windows XP, and Windows Server 2003/2008 operating systems. Any profile present under %FIORANO_HOME%/esb/server/profiles can be run as an NT service.

Configuring Server JVM Settings for running as NT-Service

The 'server.conf' file located under %FIORANO_HOME%/esb/server/bin contains various settings related to the JVM such as bootclasspath, classpath, server memory, and system properties. This file is used while creating configuration files required to run the server as a nt-service.

The configuration files are generated under the following directories:

  • For Enterprise Servers: %FIORANO_HOME%/runtimedata/EnterpriseServers/%PROFILE_NAME%/service/
  • For Peer Servers: %FIORANO_HOME%/runtimedata/PeerServers/%PROFILE_NAME%/service/

Once the server is installed as a service, future changes to the file 'server.conf' will have no effect on the server as the configuration files will not be regenerated. The server profile needs to be uninstalled and then installed again for the changes to take effect.

Icon

Configure the server JVM settings before installing the profile as a service.

On how to change the memory settings for the server, refer to Question 1 in section FAQs section in this page. 

Important

Icon
Before installation of server profiles as services on Windows Server 2003/2008, the following line needs to be added to file %FIORANO_HOME%/esb/server/bin/server.conf 'java.io.tmpdir=C:/Windows/temp' under the '<java.system.props>' tag.

Configuring Email Alerts for Server JVM Restart/Sudden Exit/JVM Hung Events

The Wrapper binary which is used to run the server as a service can generate email alerts when the server either restarts, exits unexpectedly or becomes hung.
Please refer to the file 'server.conf' located under '%FIORANO_HOME%/launcher' for the configurations.

Once the server is installed as a service, future changes to the file 'server.conf' will have no effect on the server. The server profile needs to be uninstalled and then installed again for the changes to take effect.

Icon

Configure the server JVM settings before installing the profile as a service.

How to install/uninstall a StandAlone (Non-HA) Profile as an NT Service

To install a StandAlone (Non-High Availability)Profile as an NT Service, open a command prompt from %FIORANO_HOME%/esb/server/bin/service directory and follow the below-mentioned steps accordingly:

  • To install the FES profile as an NT service, run the following command:

    Example

    Icon

     

    install-server.service.bat -mode fes -profile profile1
  • To install the FPS profile as an NT service, run the following command:

    Example

    Icon

    install-server.service.bat -mode fps -profile profile2

Icon

If a mode is not specified, the mode is taken to be 'fps'.

After installation, the NT service installed is displayed as:

Fiorano ESB Server <%PROFILE_NAME%> NT service or Fiorano Peer Server <%PROFILE_NAME%> 

To uninstall a StandAlone (Non-High Availability) Profile as NT Service, perform the steps below:

  • To remove the FES NT service, run the command:

    Example

    Icon

     uninstall-server.service.bat -mode fps -profile profile1

  • To remove the FPS NT service, run the command: 

    Icon

    If a mode is not specified, the mode is taken to be 'fps'.

    Example

    Icon

     uninstall-server.service.bat -mode fps -profile profile2

Uninstall should stop and remove the NT service for the given profile from the services list.

How to install/uninstall a Profile as NT Service with HA Profile

While running the servers in HA mode, the servers need to access network shares.

To access the network share, the server needs to configure with the user credentials of a User Account of the system.

  1. Specify the credentials in the file %FIORANO_HOME%/launcher/server.conf
  2. Uncomment the following lines in the file and specify the user account name and password.

    Icon

    If no value is specified, the LocalSystem account is used. This account does not have privileges to access network shares.

  3. Grant 'Logon as Service' permission to the user account whose credentials have been provided.

To set the "Logon as Service" attribute, perform the actions below:

  1. Go to the "Administrative Tools" folder in the control panel.
  2. Open the "Local Security Policy" applet.
  3. Expand "Local Policy" and then click "User Rights Assignment".
  4. Right-click or double-click the logon as a service policy on the right side to access its Properties window.
  5. Add the user to run the service.


Figure 1: Setting the "Logon as Service" policy

To install FES/FPS(Replicated HA Profile) as an NT service, open a command prompt, go to %FIORANO_HOME%/esb/server/bin/service directory, and run the command:

Icon

<mode> is either 'fes' or 'fps'

Example

Icon

install-server.service.bat -mode fes -profile haprofile1/primary

Icon

 haprofile1/primary is the <PROFILE_NAME>

To install FES/FPS(Shared HA Profile) as an NT service, run the command

Example

Icon

install-server.service.bat -mode fes -profile haprofile_shared/primary -dbPath \\192.168.1.213\db

Icon

<mode> is either 'fes' or 'fps'& haprofile_shared/primary is the <PROFILE_NAME%>

Icon

-dbPath refers to the path of the network share hosting the shared database. In the above example,\\192.168.1.213\db is the network share. UNC Path has been used.

Icon

If a mode is not specified,the mode is taken to be 'fps'.

After installation, the NT service installed is displayed as:

  • Fiorano ESB Server <%PROFILE_NAME%>
  • Fiorano Peer Server <%PROFILE_NAME%>

To remove FES/FPS NT service, run the command:

Icon

<mode> is either 'fes' or 'fps'

Example

Icon

uninstall-server.service.bat -mode fes -profile haprofile1/primary 

 

Uninstall should stop and remove the NT service for the given profile from the services list.

Viewing Server Logs

Once started, console Logs for FES & FPS service can be viewed in the log files listed below:

  • %FIORANO_HOME%/runtimedata/EnterpriseServers/%PROFILE_NAME%/service/service.log.
  • %FIORANO_HOME%/runtimedata/PeerServers/%PROFILE_NAME%/service/service.log.

Other logs pertaining to the server can be found under:

  • For Enterprise Server: %FIORANO_HOME%/runtimedata/EnterpriseServers/%PROFILE_NAME%/FES/run/logs
  • For Peer Server: %FIORANO_HOME%/runtimedata/PeerServers/%PROFILE_NAME%/FPS/run/logs

FAQs

Question 1: How to change Memory Settings (Xms & Xmx) of the Server while it is running as a service?

Answer:

  1. Uninstall the service.

  2. Open 'server.conf' located under %FIORANO_INSTALLATION_HOME%/esb/server/bin and change the Xms & Xmx values.

  3. Save the file and proceed to install the service again using the script.

Question 2: Certain Components such as FTP-Put, FileReader, and File Writer that are launched in-Memory are not able to access network shares?

Answer: Since the components are launched in-memory they are part of the peer server. The server needs to have user credentials of the System to access network shares when run as a nt-service. Refer to the How to install/uninstall a Profile as NT Service with HA Profile section (Steps 1 and 2).

Icon

Uninstall the service, make the required changes and then install the server as a service.


Question 3: Feeder and Display Components (components with Graphical User Interface) do not show up on Windows server 2003, 2008, and Vista, but they appear green from Fiorano eStudio?

Answer: This is due to security restrictions put in place by the Operating System. The components will be visible on Desktop 0, which is a background desktop to be switched to so as to be able to view the service interface.

To view the components display, perform the steps below:

  1. Start the Interactive service detection service. When a flow containing the components such as feeder and display are launched, a dialog box is displayed.


    Figure 2: Starting the Interactive service detection service

  2. Click on Show me the message. This leads to the Desktop 0 of the system.
     

    Figure 3: Switching to to Desktop 0
  3. To get back to the original desktop, click the Return Now option. It is possible to move back and forth between the desktops using the Interactive Services Desktop dialog box.
Adaptavist ThemeBuilder EngineAtlassian Confluence