# How to get Properties set in Apllication.xml

**URL:** <https://community.wowza.com/t/how-to-get-properties-set-in-apllication-xml/34455>\
**Category:** Wowza Streaming Engine\
**Created:** [March 10, 2010, 11:20pm UTC](https://community.wowza.com/t/how-to-get-properties-set-in-apllication-xml/34455 "2010-03-10T23:20:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Varaprasad\_Mutyala](https://avatars.discourse-cdn.com/v4/letter/v/8baadc/32.png) [@Varaprasad\_Mutyala](https://community.wowza.com/u/Varaprasad_Mutyala)\
**Post date:** [March 10, 2010, 11:20pm UTC](https://community.wowza.com/t/how-to-get-properties-set-in-apllication-xml/34455/1 "2010-03-10T23:20:06Z")

</div>

Hi Friends,

I have update Application.xml file by setting some properties regarding DB(i.e driver name , url , username, password etc).

i want to capture all these details in onAppStart() methode of my custome module.

i am using the following code , but its nor getting vallues(I am getting null)

public void onAppStart(IApplicationInstance appInstance) {

WMSProperties wmfp = appInstance.getProperties();

dbDriver = wmfp.getPropertyStr(“dbDriver”);

dbUrl = wmfp.getPropertyStr(“dbUrl”);

dbName = wmfp.getPropertyStr(“dbName”);

dbUser = wmfp.getPropertyStr(“dbUser”);

dbPassword = wmfp.getPropertyStr(“dbPassword”);

}

and i update the Application.xml like this.

here i am providing Properties part only.

dbDriver

com.mysql.jdbc.Driver

dbUrl

jdbc:mysql://localhost

dbName

myDB

dbUser

user

dbPassword

password

how it can be done.

Please help me out.

Thanks in Advance.

---

<div class="post-metadata">

**Author:** ![Varaprasad\_Mutyala](https://avatars.discourse-cdn.com/v4/letter/v/8baadc/32.png) [@Varaprasad\_Mutyala](https://community.wowza.com/u/Varaprasad_Mutyala)\
**Post date:** [March 11, 2010, 3:34am UTC](https://community.wowza.com/t/how-to-get-properties-set-in-apllication-xml/34455/2 "2010-03-11T03:34:31Z")

</div>

I forgot to add tag in element.

but this time i got the following errors from server log.

ERROR server comment - loadConfigProperty: type unknown: String

ERROR server comment - loadConfigProperty: type unknown: String

ERROR server comment - loadConfigProperty: type unknown: String

ERROR server comment - loadConfigProperty: type unknown: String

ERROR server comment - loadConfigProperty: type unknown: String

how i can resolve this issue.

please help me out.

---

<div class="post-metadata">

**Author:** ![Varaprasad\_Mutyala](https://avatars.discourse-cdn.com/v4/letter/v/8baadc/32.png) [@Varaprasad\_Mutyala](https://community.wowza.com/u/Varaprasad_Mutyala)\
**Post date:** [March 11, 2010, 3:41am UTC](https://community.wowza.com/t/how-to-get-properties-set-in-apllication-xml/34455/3 "2010-03-11T03:41:40Z")

</div>

Its working for me now,i resolved the issue.

---

<div class="post-metadata">

**Author:** ![Syed\_Ali\_Abbas](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@Syed\_Ali\_Abbas](https://community.wowza.com/u/Syed_Ali_Abbas)\
**Post date:** [July 4, 2011, 9:49pm UTC](https://community.wowza.com/t/how-to-get-properties-set-in-apllication-xml/34455/4 "2011-07-04T21:49:30Z")

</div>

I have solved the issue.

/\* Wrong \*/

url

jdbc:mysql://192.168.0.133:3306/talentidol

First letter should be Capital.

url

jdbc:mysql://192.168.0.133:3306/talentidol
