# APM and wildfly domain mode

**URL:** <https://discuss.elastic.co/t/apm-and-wildfly-domain-mode/179394>\
**Category:** APM\
**Created:** [May 2, 2019, 2:38pm UTC](https://discuss.elastic.co/t/apm-and-wildfly-domain-mode/179394 "2019-05-02T14:38:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbampa](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@sbampa](https://discuss.elastic.co/u/sbampa)\
**Post date:** [May 2, 2019, 2:38pm UTC](https://discuss.elastic.co/t/apm-and-wildfly-domain-mode/179394/1 "2019-05-02T14:38:21Z")

</div>

Hi all,  
i ask a simple question....in wildfly AS, domain mode, the apm agent will be installed and configured in domain.xml....but only on the domain controller, or also in all slaves?

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [May 2, 2019, 2:50pm UTC](https://discuss.elastic.co/t/apm-and-wildfly-domain-mode/179394/2 "2019-05-02T14:50:43Z")

</div>

The agent has to be installed on all nodes.

---

<div class="post-metadata">

**Author:** ![sbampa](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@sbampa](https://discuss.elastic.co/u/sbampa)\
**Post date:** [May 2, 2019, 2:53pm UTC](https://discuss.elastic.co/t/apm-and-wildfly-domain-mode/179394/3 "2019-05-02T14:53:03Z")

</div>

And also the configuration?

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [May 5, 2019, 10:56am UTC](https://discuss.elastic.co/t/apm-and-wildfly-domain-mode/179394/4 "2019-05-05T10:56:54Z")

</div>

Wherever an agent is installed, it needs to be configured. If you install the agent through the command line, you can use this approach to configure it as well.  
If there's a way for you to apply the required configurations centrally and all your agents require the same configurations (eg [`service_name`](https://www.elastic.co/guide/en/apm/agent/java/current/config-core.html#config-service-name)) - you can do that centrally.  
I hope this helps,  
Eyal.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 26, 2019, 6:56am UTC](https://discuss.elastic.co/t/apm-and-wildfly-domain-mode/179394/5 "2019-05-26T06:56:58Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
