akshay202
akshay202

Reputation: 606

How to read system-properties from appengine-web.xml?

I want to read system-properties for appengine-web.xml in my Java code. I have tried using System.getProperty() but it did not work.

Upvotes: 1

Views: 1470

Answers (1)

SANN3
SANN3

Reputation: 10069

Set values like below in appengine-web.xml. Then you can get using System.getProperty()

<system-properties>
  <property name="myapp.maximum-message-length" value="140" />
</system-properties>

Reference :

https://cloud.google.com/appengine/docs/java/config/appconfig?hl=en#Java_appengine_web_xml_System_properties_and_environment_variables

Upvotes: 3

Related Questions