AppD Archive

Possible to call static methods in getter chains?

Gordon_Daughert
New Member

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?

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...