In WebLogic, How I can set my own property name and value in the weblogic.properties file and read that properties from a my code?

Robert Castaneda

To do this, prepend your property with java.system.property.

and access your property using the System class. For example, if we have a property called "website" then we would add it to our property file as follows:


The code used to access this property would be as follows:

String s = System.getProperty("website");