Configure APM for java based application

Take a look at this post which provides a general explanation on how OpenTracing integration works.
Then you will need to adjust to your specific use case - see which OpenTracing library needs to be attached (in addition to the OP API) and learn how it requires you to setup a Tracer.