Loading
External Config file

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)  What is the purpose of an External Config file, how to set that in Classpath ?


Ans)

In Real Time applications, the "External Config" files play very important role.
Externalizing the Property files could ease your build and deployment process.
As these are placed in an external location (not included in WAR file) any change
to these would not require a new build and deployment.

In order to externilize the property files, you just need to place the property files in
an external folder and make that folder accessible to JVM by putting that in Classpath
as shown below. Assume that you place your propety files in "C:\conf"

i) Add this Folder to Set ENV or server Start Up script like this.
set "CLASSPATH=%CLASSPATH%%CATALINA_HOME%\bin\bootstrap.jar;C:\conf

ii) Or Add this right after Java Cmd as below.
java -cp c:\conf yourClass

 



Back to top

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

External Config file


External Config file

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



Face Book
Request for a Mock Interview/Training

Get a PDF

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