Open topic with navigation

TIBCO® Patterns 6.1.2

# 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.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO® Patterns

Copyright © 2010-2025. Cloud Software Group, Inc. All Rights Reserved.