cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in Reading Java System Property from EJB

Amey-Mogare
Contributor
0 Kudos

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 “sap.application.global.properties” 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.


http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10337a43-f09a-2d10-48ac-d7ea27d23...

Any ideas on what is missing here?

Thanks & Regards,

Amey

Accepted Solutions (0)

Answers (1)

Answers (1)

roman_loshevsky
Active Participant
0 Kudos

Hi Amey,

Try this example:

Check that you implemented all required correctly.

Regards,

Roman.

Amey-Mogare
Contributor
0 Kudos

Hello Roman,

Tried this as well. Still same issue.

Thanks & Regards,

Amey