Splunk AppDynamics

Running Getter Chain on Method Parameter

Kaja_Mohiuddeen
New Member

Dear all, 

Requesting your support in achieving the below. 

I have a method which has a custom object as a parameter. to run getter chain. I first need to cast the parameter into a Object Array and then Cast it into my POJO Class and then run the getter on it. How this can be Achieved. 

My Code Snippet Below. 

ClasssName: com.mj.common.mjServiceExecute

Method: execute(com.mj.mjapi.mjmessage)



public abstract class mjServiceExecute implements mjServiceExecuteintf {
public mjmessage execute(mjmessage paramMjMessage) {
mjmessage mjmjmesg = null;

try {
Object[] arrayOfObject = (Object[])paramMjMessage.getPayload();
MjHeaderVO mjhdrvo = (MjHeaderVO)arrayOfObject[0];
String str1 = mjhdrvo.getName();
}
}

 I want to extract the value of str1 to split the business transaction. Requesting your assistance.

Labels (1)
0 Karma

iamryan
Community Manager
Community Manager

Hi @Kaja.Mohiuddeen,

Thanks for asking your question on the community. Did you happen to find a solution you can share here?

If you did not and still need help with this question, you can contact AppDynamics Support: How to contact AppDynamics Support and manage existing cases with Cisco Support Case Manager (SCM) 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...