Frequently Asked Questions

Frequently asked questions are listed questions and answers that are supposed to be commonly asked when using TIBCO Patterns.

Is TIBCO Patterns accessible from Node.js?

You can access TIBCO® Patterns from Node.js™ using npm™.
Node.js is a development tool for creating web applications and services based on JavaScript.

Caveat - Application Responsiveness

As with any database-like system, some TIBCO® Patterns calls can take longer to impact the user’s perception of application responsiveness. When developing a Node.js application that uses TIBCO® Patterns, the usual measures for long-running functions should be used.

Procedure

1. Install TIBCO® Patterns, npm™, and Node.js.

2. Install npm’s java package.

3. From the TIBCO_HOME/tps/version/java/lib directory, retrieve TIB_tps_java_interface.jar.

4. [Optional]: Create a wrapper jar. This must encapsulate TIB_tps_java_interface.jar and expose only the functionality required by the application.

5. Access the wrapper jar from the JavaScript code by following the npm™ instructions. The wrapper jar is available on the official npmjs website.

The TIBCO Patterns Java API can be accessed directly from JavaScript code using npm™. However, that can lead to complex and hard-to maintain JavaScript code. The Patterns API is complex and has detailed data structures. As a best practice, isolate this complexity by using a wrapper jar.