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:

java.system.property.website=www.jguru.com

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

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

Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact