# How can I instrument APM agent with a core JAVA service?

**URL:** <https://discuss.elastic.co/t/how-can-i-instrument-apm-agent-with-a-core-java-service/191459>\
**Category:** APM\
**Tags:** java\
**Created:** [July 19, 2019, 11:23pm UTC](https://discuss.elastic.co/t/how-can-i-instrument-apm-agent-with-a-core-java-service/191459 "2019-07-19T23:23:20Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [July 24, 2019, 2:52pm UTC](https://discuss.elastic.co/t/how-can-i-instrument-apm-agent-with-a-core-java-service/191459/9 "2019-07-24T14:52:15Z")

</div>

Can you get the simple petclinc work in tomcat?

the reason I asked if you looked at this thread at the very end they finally figure it out they weren't using a supported framework. Are you using some other framework with your spring boot?

> [@APM agent showing timeout Error (Connection Refused)](https://discuss.elastic.co/t/apm-agent-showing-timeout-error-connection-refused/171768/12):
>
> Not sure if that's what you meant by "I made sure to add in the objects and it found 16." but did you Load Kibana objects? See [https://www.elastic.co/guide/en/kibana/6.6/apm-getting-started.html](https://www.elastic.co/guide/en/kibana/6.6/apm-getting-started.html)? If it still does not work, could you execute this query in the Kibana Dev Tools console: GET /apm\*/\_search { "query": { "match\_all": {} } }

---

_[View the full topic](https://discuss.elastic.co/t/how-can-i-instrument-apm-agent-with-a-core-java-service/191459)._
