Click the Start a free trial link to start a 30-day SaaS trial of our product and join our community as a trial customer. If you are an existing customer do not start a free trial.
AppDynamics customers and established members should click the sign in button to authenticate.
Document  doesn't talk about how we can cast an object and use getter chains on that.
For example, ((MySecondClass) myFirstObject.myFirstMethod()).mySecondMethod() How do I do this in Appdynamics?
Hi, what types of objects are you trying to cast? I see that the documentation covers examples for the following:
I think it depends on the type of object -- if you can share that with me I can find an example for you, and update the docs.
I'm using data collectors, and instrumenting on org.apache.synapse.core.axis2.Axis2Sender class' sendBack(org.apache.synapse.MessageContext smc) method.
I want to use getter chain on the method parameter (smc), but I can't use one direclty, I need to first cast org.apache.synapse.MessageContext to org.apache.synapse.core.axis2.Axis2MessageContext and then invoke getter chain on the casted object.
How do I do this?
You need not cast object here. I understand that org.apache.synapse.core.axis2.Axis2MessageContext implements org.apache.synapse.core.axis2.MessageContext. So when you define data collector, at run time the getter chain will be invoked on implementing object.
You can define DC on
Hope that answers your query.