# Getting config parameters from Application.xml

**URL:** <https://community.wowza.com/t/getting-config-parameters-from-application-xml/35425>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [November 9, 2011, 3:22pm UTC](https://community.wowza.com/t/getting-config-parameters-from-application-xml/35425 "2011-11-09T15:22:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Mahoney](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@Daniel\_Mahoney](https://community.wowza.com/u/Daniel_Mahoney)\
**Post date:** [November 9, 2011, 3:22pm UTC](https://community.wowza.com/t/getting-config-parameters-from-application-xml/35425/1 "2011-11-09T15:22:10Z")

</div>

I suspect I’ve seen this answered before, but a search of the forum archives didn’t point me to where I’ve seen it.

I need to be able to set some runtime config variables to be used by some of my modules. For example, if I want my module to write verbose logs I normally pass in a command line argument when I write my own code, but can’t vary well do that with a Wowza module. Can I use, for example, the Application/Properties section of my application’s Application.xml to pass settings? Like verbosetrue? If so, what’s the proper way to read that property?

If I can find out the proper way to do that then I can change runtime operation by modifying my Application.xml file and restarting Wowza, rather than having to modify, recompile, and scp my module to the server.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [November 9, 2011, 9:28pm UTC](https://community.wowza.com/t/getting-config-parameters-from-application-xml/35425/2 "2011-11-09T21:28:02Z")

</div>

Yes, you can set properties there, then read and set them in application module

```auto
appInstance.getProperties().setProperty("var", "val");
		
String var = appInstance.getProperties().getPropertyStr("var");

```

Richard

---

<div class="post-metadata">

**Author:** ![Daniel\_Mahoney](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@Daniel\_Mahoney](https://community.wowza.com/u/Daniel_Mahoney)\
**Post date:** [November 9, 2011, 3:34pm UTC](https://community.wowza.com/t/getting-config-parameters-from-application-xml/35425/3 "2011-11-09T15:34:37Z")

</div>

Excellent! Thank you very much.
