Skip to Content
avatar image
Former Member

Application Properties in Webdynpro

Hi,

I need to use Application properties in my webdynpro application so that i can change some settings by using the Application XML.

I add a Name and Value in the Application Properties and try to retieve the same using the following code.

IWDApplicationPropertyInfo myCol = wdComponentAPI.getApplication().getApplicationInfo().findInApplicationProperties("TIMEIDHELP");

wdContext.currentContextElement().setTimeID(myCol.getValue());

I am always getting the answer as null.

Can someone help me on this?

Regards,

Balaji

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 17, 2004 at 05:29 AM

    Hi Balaji,

    your sample should work. Please check, if you have mistyped the property key "TIMEIDHELP". The key is case sensitive and must be exactly the same as in the corresponding application definition.

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Stefan,

      The EAR file should be extracted into the server only when it is deployed and not when it is restarted. (?? I think).

      In any case, can you suggest some other solution for this. I need to maintain a few properties for the application and these should be changeble without the need for any recompiling or redeployment.

      I thought that the Application properties would do exactly that.

      Thanks for your help.

      Regards,

      Balaji