on 02-02-2005 3:05 PM
Hy All,
i want to configure my application from a propertiy-file.
Some variables like server, port, name and so one.
Where can i find information about properties file.
Thanks for help
Regards
Jürgen
Hi,
If you need to maintain your own configuration file then search in NW help for <i>IWDConfiguration</i> will be a good start (there are references for smple usage and API docs).
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
Let me explain the scenario.
i have a Webdynpro project with a serach and a list view.
At the list view i have a LinkToUrl UI Element in a table with a dynamic url. If i work on the development system the línk may is http://192.168.1.10/TestMich/index.html, but if i at the Productionsystem the url must http://120.0.1.57/Product/index.html.
How can i trigger the system ip and port from outside, like a ApplicationConfig-Properties File with a key-value pair ?
I tested it at the moment with a local file, but i got a FileNotFound-exception. Do you hava a example for a path-description from Project root ?
I test the file-location in that way:
"temp
webdynpro
web
local
ProjectName
Temp
AppConfig.properties"
Can i trigger my application in that way ?
I have seen, that i can configure my WebDynpro-Application at DeveloperStudio over
- WebDynpro - Applications - ApplicationName - Properties - ApplicationProperties - New (Property).
At the moment, i dont know, what is the right way to configure or administrate the application.
Tahnks for help
Regards
Jürgen
Hi Jurgen,
If you are using the WDConfiguration API, you need to create a property file in the configuration directory of your web dynpro project.
Something along the lines of what they do here
http://help.sap.com/saphelp_erp2004/helpdata/en/b8/aa343e32ff1033e10000000a114084/content.htm
WebAS provides a built in tool to manage your application configuration properties as part of the j2ee visual administrator. This is under server>services>configuration adapter
The drawback of this method is that it requires a cluster restart every time you modify the property.
For our project, we have one method that takes the property from the WDConfiguration API, but also checks first if the property is overwritten in the application url using the WDWebContextAdapter.getWebContextAdapter().getRequestParameter() method. This allows us to change the value at runtime without having to go to the server and restarting all the time.
See <a href="http://help.sap.com/saphelp_nw04/helpdata/en/09/a4d6a674bc1d4a9e74abf81bed3ef6/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/09/a4d6a674bc1d4a9e74abf81bed3ef6/frameset.htm</a>
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.