cancel
Showing results for 
Search instead for 
Did you mean: 

How to inject external configuration into web dynpro application

former_member598611
Discoverer
0 Kudos

Hi colleagues,

I've a web dynpro application, which has some hard coded hostnames in the source code.

All hard coded hostnames should be moved to some else place, either engine parameters or external configuration file.

Searching over the project, hard coded hostnames were found in following file types:

- wdmodel files

- properties files

- java files

How to inject external configured hostnames into web dynpro applications, especially wdmodel and property files? Are threre best practices?

Thanks for any hint!

Best regards

Daniel

Accepted Solutions (0)

Answers (2)

Answers (2)

junwu
Active Contributor
0 Kudos

property file is supposed to do that job, you can configure the value at nwa after the application is deployed.

Configuring a Web Dynpro Application (Java) - IT Scenarios at a Glance - SAP Library

former_member191044
Active Contributor
0 Kudos


I would suggest online modifiable properties, so you can change it via NWA. If hostnames should be evaluated dynamically on runtime, you could think about BRM Business Tables.

Regards,

Tobias