Skip to Content
avatar image
Former Member

Application Properties file

Hi,

I have a java DC which should be able to read some application properties like

mdm.servername

mdm.repositoryname

mdm.username

I have tried using the ApplicationConfigHandler class in which I created a EAR and Web Module DC and when I run this web module dc as standalone, the properties file "sap.application.global.properties" gets loaded successfully.

But when I call this webmodule Dc's method to load properties from a Java DC , all the properties are null.

Is there any other way that I can load properties in java DC which can be modified without having to redeploy the java dc.

Thanks

MLS

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Mar 23, 2009 at 10:20 AM

    Hi

    Use [configuration services |https://help.sap.com/saphelp_nw04/helpdata/en/b8/aa343e32ff1033e10000000a114084/frameset.htm] in order to created application-specific properties that can be modified at run-time.

    Good luck,

    Ola

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 30, 2009 at 12:37 PM

    Hi

    Make use of java.util.property calss

    regards

    Noel

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 16, 2009 at 04:39 PM

    How do you do this? Could you post some sample coding, please? I don't find a way of instantiating the Handler. Is there any documentation on this? I'm having the same problem right now, maybe I find a solution.

    Regards,

    Jörg

    Add comment
    10|10000 characters needed characters exceeded