About POJO Custom Match Rules
Custom match rules for POJOs let you configure business transaction detection in application environments that run pure Java applications or that use frameworks with entry points that are not automatically detected.
Unlike common frameworks, which are characterized by well-known entry points for applications, the logical entry point for a business transaction for a POJO entry point could be any method in the application.
To configure a custom POJO entry point, therefore, you need to identify the method that Splunk AppDynamics should consider the business transaction entry point. Keep in mind that the start and end of the execution of the method will correspond to the start and end of the business transaction, so the method should encapsulate the complete execution of the business transaction.
For example, consider the method execution sequence:
com.foo.threadpool.WorkerThread.run()
calls com.foo.threadpool.WorkerThread.runInternal()
calls com.foo.Job.run()
The first two calls to run()
method are the blocking methods that accept a job and invoke it. The Job.run()
method is the actual unit of work, because Job is executed every time the business transaction is invoked and finishes when the business transaction finishes.
Methods like these are the best candidates for POJO entry points. The response time for POJO transactions is measured from this entry point, and remote calls are tracked the same way as are remote calls for a Servlet's Service method.