Jump to content

how to I access the application name at runtime with Tibco Business Events


Donald Long 2

Recommended Posts

I need to know my application name at runtime in Business Events. The Engine Name isn't accurate enough For example, i have 2 instances of an application running on a single server APP_TEST_LB1 APP_TEST_LB2 I need to be able to test in one of the rules which instance is running. is there a property or function for that I see that in the application logs the proper application name is listed.. so it should be accessible, right Thanks
Link to comment
Share on other sites

  • 4 months later...

HI There,

We have catalog functions available to getAgentName and getClusterName and getAgentId under our function grouping named "Cluster". Please explore.

Function:

Cluster.getAgentName

Signature:

String getAgentName()

Description:

Returns the name of the BE Agent

Returns:

String The name of the agent

Example:

String cName = ClusterFunctions.getAgentName();

==========

 

Function:

Cluster.getAgentId

Signature:

int getAgentId()

Description:

Returns the unique id of the agent

Example:

int cAgentId = ClusterFunctions.getAgentId();

 

 

 

Cluster.getAgentId()

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...