on 10-25-2007 2:44 PM
Hi experts ,
I have a webdynpro DC project which contains property file in application package.
like com.sap.appName.propertyFile.properties
Once i generate an *.ear file, is there any way to change the property file from server side ?
Like my property file contains some confiuration information required in application and i want to change it from serverside...
Is it possible by any way ?
Thanks in advance
Hi Vinay,
I hope this can help you
<a href="/people/daniel.wirbser/blog/2005/09/28/properties-files-in-web-dynpro-applications-how-to-use-the-wdconfiguration-api:///people/daniel.wirbser/blog/2005/09/28/properties-files-in-web-dynpro-applications-how-to-use-the-wdconfiguration-api
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinay,
Try to create the property file in < project name>/src/configuration/Applications/< application name>.
Accessing the property file
// access the deployable object part of the application you are currently in.
WDDeployableObjectPart currentAppPart = wdThis.wdGetAPI().getComponent().getApplication().getDeployableObjectPart();
// access the property file under the deployable object part.
IWDConfiguration cicConfig = WDConfiguration.getConfigurationByName (currentAppPart, "<name of property file>");
// get the string value of the property.
String key = cicConfig.getStringEntry ("<key>");
Rebuild and deploy the application. The property file of your application is created as a property sheet in:
Visual Admin-Configuration Adapter/webdynpro/local/<project name>/Applications/<application name>/Property sheet.
Hope this helps
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.