To start Nodejs inside a peer server, perform the following actions..

  1. Open Peer server profile in eStudio.

  2. Go to Fiorano > Esb > NodeJs > NodeJs and enable the EnableStart property. 


    Ensure that the FPS server is not running.


    By default, a script file which starts a webserver is configured for 'ScriptFilePath' at installer\esb\samples\nodejs\httpserver. The path can be changed by editing the ScriptFilePath property and the script file can be customized if required by accessing the file from the saved location.

    Figure 1: Enabling EnableStart property

  3. Press CTRL+S or click the Save  icon to save the profile.
  4. Go to Installer\extlib\j2v8 and retain only the jar related to the corresponding OS after deleting other OS-related jars.


    Stop the FES server if it is running in the same system where FPS is running.

  5. Create a folder named "jni" at Installer\esb\server\bin folder.
  6. Extract the j2v8 jar and copy the following file to the jni folder.
    1. Windows: .dll
    2. Linux: .so
    3. mac: .dylib
  7. Delete the extracted folder.
  8. Start the peer server and check the following statement in the peer console which acknowledges that the Nodejs server is started inside the peer server:

    Figure 2: Acknowledgement message appearing on the Peer console

  9. To check if the connection is established, invoke the following URL in the browser, which ideally gives "Hello World" as the response:

    Figure 3: Testing the connection


Adaptavist ThemeBuilder EngineAtlassian Confluence