Quantcast
Channel: All AppDynamics Discussions posts
Viewing all articles
Browse latest Browse all 1667

Possible to call static methods in getter chains?

$
0
0

Today for the second time I came across a situation where calling a static method within a getter chain would be helpful. I'd like to be able to call System.getProperty in a backend's split condition in order to properly label it. Specifically, what I have is many tiers that each contain a mix of maybe 15 functionally different apps. I've created a backend that'll tell me when any of them perform a particular problematic action. This gets me info at the tier level but I'd like to be able to grab the app's name from a system property in order to identify the specific app or apps that have the behavior in question. Without this my next best option is to look at the BTs involved and try to figure out the offending app from the tier name + the associated BT.

 

The first time that calling a static function came up was when I wanted to be able to grab a timestamp from a property of a JMS message via a MIDC and subtract that time from the current time in order to capture that 'age' of the message at the time of receipt (reference point being the time of initial dispatch).

 

Has anybody been able to do either of these things?


Viewing all articles
Browse latest Browse all 1667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>