To monitor/capture arguments and return value of any method in applicare simply add the method as key business transaction and enable transaction tracing. In the trace, the return value of the method will be shown in the param _ap_txn_ret_val.
Sample:
[Screenshot 1 is not available on this page.]
To monitor arguments and return value of getInterger method we should add it as key business transactions.
[Screenshot 2 is not available on this page.]
[Screenshot 3 is not available on this page.]
[Screenshot 4 is not available on this page.]
In the above case, _ap_txn_ret_val shows the return value and javal.lang.Integer & java.lang.String shows the value of the arguments passed to the method getInterger()