Contents

The Fiorano 10 has a concept of profile based server, for example, profile1, profile2, haprofile, and so on. All these profiles can be run either as a Fiorano Enterprise Server or a 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 and Windows XP, 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 like bootclasspath, classpath, server memory, system properties, and so on. 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 be effective. Make sure you have made the entire 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.
 

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 be effective. Make sure you have made all the settings before installing the profile as a service.

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

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

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

    Example

    Icon

     

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

    Example

    Icon

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

Icon

If mode is not specified, it is taken as 'fps'.

After installation, you should be able to see the following NT service installed:

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 following steps:

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

    Example

    Icon

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

 

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

    Icon

    If mode is not specified, it is taken as '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 following actions:

  1. Go to the "Administrative Tools" folder in your control panel.
  2. Open the "Local Security Policy" applet.
  3. Expand "Local Policy" and then click "User Rights Assignment".
  4. On the right side, you can find a "logon as service policy". Right-click or double-click to access its properties dialog.
  5. Add the user that you wish to allow to run the service.


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 following 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 mode is not specified, it is taken as 'fps'.

After installation, you should be able to see the following NT service installed:

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

To remove FES/FPS NT service, run the following 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 following log files:

  • %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 Server while running as a service?

Answer: Uninstall the service (refer section How to install/uninstall a StandAlone (Non-HA) Profile as NT Service and How to install/uninstall a Profile as NT Service with HA Profile)
Open 'server.conf' located under %FIORANO_INSTALLATION_HOME%/esb/server/bin and change the Xms & Xmx values. (Refer section Configuring Server JVM Settings for Running as NT-Service.)
Save the file and proceed to install the service again using the script.

Question 2: Certain Components like FTP-Put / FileReader / 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 Section How to install/uninstall a Profile as NT Service with HA Profile (Steps 1 and 2).

Icon

You need to uninstall the service, make the required changes and then install the server as a service.


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

Answer: This is due to security restrictions put in place by the OS. The components will be visible on Desktop 0, which is a background desktop that you have to switch to see the service interface.
To see the components display, perform the following steps:

  1. Start the service Interactive service detection. When we launch a flow containing the components like feeder/display, a pop-up should appear.



  2. Click on Show me the message. This should take you to the Desktop 0 of system.
     


  3. To get back to the original desktop, click the Return Now option. You can move back and forth the desktops using the interactive services desktop popup dialog.
Adaptavist ThemeBuilder EngineAtlassian Confluence