How to get Properties set in Apllication.xml

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.

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.

Its working for me now,i resolved the issue.

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