Configuring System property in weblogic

Hi All,

Sometime we need to configure few properties in server which we can easily read, without reading property files in java code/JSP code/Servlet.

Weblogic gives a very nice way to do that. Only thing we need to do is to configure the property with key value in server start options (i.e java options). We also called theses memory arguments. Just login to admin console, and go to server properties and add the below property.


After setting the memory argument simply restart the server and access the property in your JSP/Java Code/Servlet

String keyValue=System.getProperty(“key”);
System.out.pritnln(“************** “+keyValue);

// **************MyValue

Hope this helps.

R Vashi

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.