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.