Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
10-24-2024 04:42 AM
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.
10-28-2024 09:28 AM
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)
Thanks,
Ryan, Cisco AppDynamics Community Manager
Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Check out Observabiity in Action
new deep dive videos weekly in the Knowledge Base.
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form