Loading
System Parameter

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  How to set -D Or System parameter ?


  • System Parameter ?
    Sample Img 6

Ans)

-D parameters are also called as the System Parameters. "System Parameters" are really
useful especially in Real-Time projects, where it requires you to input some parameters
to your App whose values could vary from one JVM to JVM (Env to ENV) dynamically,

e.g. "PropertyFile Names" , that could be varied from one ENV to another because the DEV
property file should not be used for Prod Environment.
 
Here are some additional cases in which we use these, most of these are related to
application "Configuration" such as “Property File Names” or “paths” or “Hibernate Config file path”
or some special “Lib paths” or Memory Settings, all of these could be varied based on ENVs.
 
This is how to set these parameters:
-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties

Read this as following in your App :
System.getParamter (“java.util.logging.config.file”);

 



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

System Parameter


System Parameter

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free