How to determine if the application/project is running under designer or administrator as deployed application ?

How to determine if the application/project is running under designer or administrator as deployed application ?

book

Article ID: KB0091597

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
There is no direct way of finding out the application originator.

You can probably have a javacode with in the BW process and you can use System.getProperty("user.dir") which will display the current working directory from where the application was invoked. If you have started the application from designer it will show say C:/tibco/designer/5.5 and if you have started the application from administrator or deployed application it might show the application directory instead.  

The other idea to find out if the project was started from designer or not is as below:-
If you start the application from Designer tester, under C:/Documents and Settings/&ltlogged user>/.TIBCO directory you will see  a working directory where it will create a new directory with the project name and under .TIBCO/logs it will also create a project name.log as well for BW application. You can have a process check if the file created with current time and date, it means that the application is currently running within designer.

Apart from that in Solaris 9 or Solaris 10, pargs &ltpid> command will show how the process was started details.  By directory and the name of the tra file you can find out if it was started from designer or from deployed application.

Issue/Introduction

How to determine if the application/project is running under designer or administrator as deployed application ?