TIBCO BusinessWork bwengine.tra file

Location- TIBCO_HOME/bw/<bw_version>/bin

This is a very critical file for providing runtime information for bw engine.  It contains following information

tibco.env.PSP=;

tibco.env.TIB_HOME=C:/tibco

tibco.env.JVM_LIB_PATH=C:/tibco/jre/1.6.2/bin/server/jvm.dll

tibco.env.JVM_LIB_DIR=C:/tibco/jre/1.6.2/bin

tibco.env.RV_HOME=C:/tibco/tibrv

tibco.env.TIB_JAVA_HOME=C:/tibco/jre/1.6.2

tibco.env.TPCL_HOME=C:/tibco/tpcl/5.7

tibco.env.TRA_HOME=C:/tibco/tra/5.3

tibco.env.TRA_APPEND_VERSION=5.3

tibco.env.HAWK_HOME=C:/tibco/hawk

tibco.env.BW_HOME=C:/tibco/bw/5.7

tibco.env.BW_PLUGINS_HOME=C:/tibco/bw/plugins

Essentially, it define version and location of Hawk, Jvm, BW,EMS the system is using.

TPCL_HOME– TPCL stands for Third Party Client Libraries. Generally it contain jar files which are not part of TIBCO such as tomcat and some open source files.

For more information, visit TibcoExpert.com

Advertisements
Posted in Administrator

Tibco Business Works – How to validate-dateTime

Business work provides validate-dateTime function to validate a date or dateTime.

Syntax of this function is

tib:validate-dateTime(<< format >>, << date to be validated >>)

For more information, visit TibcoExpert.

Tagged with: , , ,
Posted in BusinessWorks

Tibco BW- Using Jar files

If you want to use external java classes in your BW project, you can create a jar file and use it within Project

Create a New Alias

–  Create New Alias Library (for example, TestAlias)
–  Select Alias TAB
–  You can add external jar in two ways

  • You can create a new Alias (+ sign)
  • You can select Alias Picker (from File Alias)- Here you can choose alias which are included in your file alias (for example, abcd.jar). In order to use it you must have file alias for the jar file

Create new Java Global Instance
–   Create new Java Global Instance (for example, TestGlobalInstance) with following values

  • Library- select alias created above.
  • Class- Select a class (when you click on search button you will be shown jar file). If you are not able to see jar file, please follow instruction provided.
  • Method- select method to call

–   You will be shown all parameters required for the method.

Using Java Global Instance
–         Create a new process
–         Drag Java Method from Java palette
–         Select Java Global instance created above (for example, TestGlobalInstance)

  • You could use any other method of class selected in Java Global Instance. You would not be able to change a class here

Using Alias Library
–         Alias can be directly used within Java method (From Java palette) with following values (Keep Java Global Instance value empty in Java Method)

  • Library- select Alias library
  • Select a class and method to be used


When you use Alias Library and Java Global Instance

 
Java Global Instance-

  1. You are sure which class to use, but you may want to use different method during BW process.
  2. You may want to restrict classes to be used within BW processes

Alias Library-

  1. This gives to immense flexibility in using jar file.
  2. You can select one or more jar file as part of Alias Libray and different processes can reuse it.
  3. They may want to different java classes and their method.

Leave your comments below, if you find this article useful.

Tagged with: , , ,
Posted in Java

Tibco BW- Java classes is not shown in Java palette

When you try to use classes within the jar (using java method), you can see jar file but you are not able to see classes inside jar file

Solution

In order to use java files within jar, there are certain things which needs to be taken care of

–         All Java classes (not interfaces) must be serializable

  • For example public class Tester implements java.io.Serializable.

–         Java version used to build jar files should be same as used by Tibco

–         Jar file must be Runnable

  • Runnable jar is different than normal jar file in the sense it contain Mainifies file. Manifest file that will hold that information of main class to run when jar file is invoked. For example java -jar myRunnable.jar

For more information visit TibcoExpert.com

Tagged with:
Posted in Java