Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 7 Transaction Pipeline Processing : Custom Java Functions

Custom Java Functions
TIBCO API Exchange Gateway bundles the Saxon Professional Edition (PE) product libraries with the installation package to support the Java functions in the XSLT files.
To create your own Java functions and use the functions in the XSLT files, do the following steps:
1.
2.
3.
Java function
The HelloWorld java function is defined as follows:

 
package Test;
 
public class HelloWorld {
public static String getName(){
return "Hello";
}
}

 
XSLT File
Use the HelloWorld function in an XSLT file as follows:

 
<routingKey>
<xsl:value-of select="nameUtils:getName()" xmlns:nameUtils="java:Test.HelloWorld"/>
</routingKey>

 
 

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved