We can Use Linux Commands in Windows with Cygwin

We can use the UNIX/LINUX commands and also run shell scripts in Windows.This can possible with Cygwin it is free software can download from site.

We can refer the bellow links for reference

Installing Cygwin/X

http://x.cygwin.com/docs/ug/setup-cygwin-x-installing.html

 or


http://www.howtogeek.com/howto/41382/how-to-use-linux-commands-in-windows-with-cygwin/

Cygwin Package List

http://cygwin.com/packages/

EMS scripting - How to execute a sequence of EMS commands

We can execute a sequence of EMS commands by writing a simple script file.
write EMS commands in txt file and save in location C:\tibco\ems\5.1\bin
Example script file is dev.scr and its content is

show queues
show topics


open command prompt and go to the location C:\tibco\ems\5.1\bin and run the below command, it will execute the EMS commands

C:\tibco\ems\5.1\bin>
tibemsadmin -server "tcp://localhost:7222" -user admin -password "" -script C:\tibco\ems\5.1\bin\dev.scr


just give the full path of the file with the extension(i.e C:\script.txt or C:\script.scr or C:\script.anything) in the command and run it.
Even if there is no file extension, it doesnt matter :-)...you just need to have a plain text file with all the ems commands.


Syntax of the command is

tibemsadmin -server <server-url> -user <user-name> -password  <password> -script C:\script.txt

Accessing password data type Global Variables in TIBCO ActiveMatrix BusinessWorks

For example, if project defined a global variable named 'dbpassword' and its data type is Password ,So then its value displays as * (Asterisk)  only,we can access " * " the value of the global variable with the following Java code:
 String password =   com.tibco.pe.plugin.PluginProperties.getProperty("tibco.clientVar.dbpassword");

Take one business process in designer and drog & drop the Java Code Activity and define a out parameter "Output" in configuration tab and write the below code 

 String password =   com.tibco.pe.plugin.PluginProperties.getProperty("tibco.clientVar.dbpassword");
 Output=password;


and run this process we can get the password value in Output parameter.

We must specify the full path for global variables contained in variable groups to access the variable’s value. Use the slash character (/) to separate each element in the path.
We can use the com.tibco.pe.plugin.PluginProperties.getProperty() method to retrieve any Java system property or global variables defined in a project.
Global variables are contained in Java System properties that are prefixed with tibco.clientVar.

BW Error: Call process input failed validation , BWENGINE-100067

Development of the project doesn't shown any error in validation for deployment.But this error could be caused by invalid runtime data.

Resolution:Please check the input mappings for the Call Process activity

BWENGINE-100067:Call process input failed validation
Role:errorRole

Category:BW-Core
Description:The input data passed to the Call Process activity did not conform tothe input of the called process


Resolution:Please check the input mappings for the End activity in the process that was called

BWENGINE-100068:Call process results failed validation
Role:errorRole

Category:BW-Core
Description:The process that was called returned results that were not expectedby the Call Process activity


TIBCO BW Java Method does not show the classes of Jar file in "show class browser"

If we have created a simple java class with main method and one another method in the class and compiled the class.created a jar out of it and set the class path in the designer.tra(tibco.env.CUSTOM_CP_EXT) and bwengine.tra file(tibco.env.CUSTOM_EXT_APPEND_CP) with the jar file location.

Now created a bw process having a java method and trying to browse for a class.in the show class browser can able to locate jar file. But, if we can click on that jar file, it may not showing the classes or methods in the jar file to select. So for this issue we may troubleshoot like this below mentioned

Fallow the steps

1. Put your class in this path C:\tibco\bw\5.6\lib\com
2. Create your class with serializable
3. Crete jar file in C:\tibco\bw\5.6\lib
4. Create alias library and add C:\tibco\bw\5.6\lib
5. Java method activity configure library with alias library.
6. Now select your class
7. It will show your method.
8. Give input to java method
9. Desired output will be coming

If we have still the same problem then do this like mentioned here.

while building Jar file in RAD there are different ways in JAVA folder i.e.JAR,JAR file with instrumentation support and Runnable JAR file.
To enable in TIBCO classes window the jar should build as Runnable JAR file only.
So if classes are not showing in window, then should build again the JAR file properly

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP