cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: properties files in webdynpro

Former Member
0 Kudos

Hi All,

I want to develeopment webdynPro project,in which need to get environment dependent parameteres depending on Environments..as i do in java, i want to create .properties file with the WebdynPro project.

i am unable to create the file..Please help me out to develope a Projects independent of Environment....

Thanks

-


Nagaraju

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved using IWDConfiguration API.

PradeepBondla
Active Contributor
0 Kudos

Hi,

here is a good blog on the same

PradeeP

Former Member
0 Kudos

Hi Pradeep,

Where can i get the configuration api. Can u please provide where can i get it.

Thanks

Supriya

Former Member
0 Kudos

Hi,

Where can i get the configuration api. Can u please provide where can i get it.


	  IWDDeployableObject deployableObject = wdComponentAPI.getDeployableObjectPart().getDeployableObject();
	  String configName = "test"; //This should match with the name specified in the src->configuration->test.properties
	  WDConfiguration.getConfigurationByName(deployableObject, configName)
	  
	  //For 7.1 instead of the above code use
	  IWDWebModule webModule = wdComponentAPI.getDeployableObjectPart().getWebModule();
	  WDConfiguration.getConfigurationByName(webModule, configName);

Regards

Ayyapparaj