Skip to Content

How to handle application properties

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Posted on Feb 02, 2005 at 03:35 PM
  • author's profile photo
    Former Member
    Posted on Feb 02, 2005 at 03:58 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Jürgen Berndt

      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.