JavaScript for Node.js Programmer’s Checklist
When developing eFTL JavaScript programs for Node.js environments, remember these steps.
Code
- JavaScript programs must require the TIBCO eFTL library package,
TIBCO_HOME/eftl/version/sdks/javascript/lib/eftl.js.
var eftl = require('eftl')
- If you run a secure eFTL server, which listens using wss protocol, the program must register the server certificates that the application trusts. If the program does not register server certificates, then it trusts any certificate that the server present. (The JavaScript method that registers certificates applies only when running in a Node.js environment. It is not effective when running in a browser.)
Run
- eFTL programs require that the WebSocket module is installed in the Node.js environment.
Install it using this command line:
npm install ws
- Ensure that the TIBCO FTL realm server is running, and that each TIBCO eFTL server process can connect to it.
- If your application communicates over EMS channels, ensure that the TIBCO EMS server is running, and that each TIBCO eFTL server process can connect to it.
- If your application uses FTL durables, ensure that persistence stores are configured, running, and reachable.
- Ensure that the TIBCO eFTL server is running, and that each client process can connect to it.
- Ensure that the file eftl.js is available in the environment.
Copyright © Cloud Software Group, Inc. All rights reserved.