Can we call external java classes (classes which are not included in the dat file) from within the "Execute Script Task"?

Can we call external java classes (classes which are not included in the dat file) from within the "Execute Script Task"?

book

Article ID: KB0088041

calendar_today

Updated On:

Products Versions
TIBCO IntegrationManager -
Not Applicable -

Description

Resolution:
Yes, we can create objects for external JAVA classes. The synatx for the same is -
var objname = Packages.&ltpackageName>.&ltclass name>

For eg.- if you want to use the java.lang.String in your "Execute Script Task" the syntax will be -
var str = Packages.java.lang.String("test");

Make sure that the Class file is included in the CLASSPATH

Environment

Product: TIBCO IntegrationManager Version: All OS: All --------------------

Issue/Introduction

Can we call external java classes (classes which are not included in the dat file) from within the "Execute Script Task"?