Skip to Content

Issue in Reading Java System Property from EJB

Hello All,

I have a requirement to create a property in EJB DC which is configurable through NWA.

For this, I have created an EJB DC & EAR DC.

In the META-INF folder of EAR DC, I have created “” file.

In file, I have created the required property and deployed the application.

In NWA, these properties are getting displayed/modifiable.

In session bean of EJB DC I am wrote below code to read the required property: -

But, surprisingly, the variable “appProps” (marked in yellow) is getting returned as null, due to which null pointer exception occurs &  I’m not able to fetch the required property.

I have also tried the approach of reading props like below, but still no luck.

Any ideas on what is missing here?

Thanks & Regards,


Untitled.jpg (69.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 29, 2015 at 04:44 PM

    Hi Amey,

    Try this example:Way to Read SAP.APPLICATION.GLOBAL.PROPERTIES File via Java code

    Check that you implemented all required correctly.



    Add comment
    10|10000 characters needed characters exceeded